提交 f136e1e2 编写于 作者: V Vlad Ilyushchenko

test fix

上级 1151b69f
......@@ -39,13 +39,14 @@ import com.questdb.JournalWriter;
import com.questdb.factory.configuration.JournalStructure;
import com.questdb.ql.parser.AbstractOptimiserTest;
import com.questdb.test.tools.TestUtils;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
public class SubqueryOptimiserTest extends AbstractOptimiserTest {
@BeforeClass
public static void setUp() throws Exception {
public static void setUpClass() throws Exception {
JournalWriter w = factory.writer(
new JournalStructure("tab").
$sym("id").index().valueCountHint(128).
......@@ -59,6 +60,11 @@ public class SubqueryOptimiserTest extends AbstractOptimiserTest {
w.close();
}
@Before
public void setUp() throws Exception {
sink.clear();
}
@Test
public void testOneLevelSimpleSubquery() throws Exception {
sink.put(compiler.compileSource(factory, "(tab order by x) where x = 10"));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册