make query run

This commit is contained in:
Zoltan Haindrich 2024-07-17 16:33:10 +00:00
parent 97c32ca3de
commit 0811d801fb
3 changed files with 6 additions and 1 deletions

View File

@ -388,6 +388,9 @@ public class CalciteMSQTestsHelper
.inputTmpDir(tempFolderProducer.apply("tmpDir")) .inputTmpDir(tempFolderProducer.apply("tmpDir"))
.buildMMappedIndex(); .buildMMappedIndex();
break; break;
case CalciteTests.WIKIPEDIA:
index = TestDataBuilder.makeWikipediaIndex(tempFolderProducer.apply("tmpDir"));
break;
case CalciteTests.WIKIPEDIA_FIRST_LAST: case CalciteTests.WIKIPEDIA_FIRST_LAST:
index = TestDataBuilder.makeWikipediaIndexWithAggregation(tempFolderProducer.apply("tmpDir")); index = TestDataBuilder.makeWikipediaIndexWithAggregation(tempFolderProducer.apply("tmpDir"));
break; break;

View File

@ -10,7 +10,7 @@ order by 1;
+--------------------------------------------+ +--------------------------------------------+
| TASK | | TASK |
+--------------------------------------------+ +--------------------------------------------+
| query-150dc5d7-57d5-44bf-a3be-a023d91fddb9 | | query-a0537802-857a-450e-bceb-3c6d1fd142ff |
+--------------------------------------------+ +--------------------------------------------+
(1 row) (1 row)

View File

@ -42,6 +42,7 @@ import org.apache.druid.query.QueryRunnerFactoryConglomerate;
import org.apache.druid.query.QuerySegmentWalker; import org.apache.druid.query.QuerySegmentWalker;
import org.apache.druid.query.lookup.LookupExtractorFactoryContainerProvider; import org.apache.druid.query.lookup.LookupExtractorFactoryContainerProvider;
import org.apache.druid.query.topn.TopNQueryConfig; import org.apache.druid.query.topn.TopNQueryConfig;
import org.apache.druid.quidem.TestSqlModule;
import org.apache.druid.segment.DefaultColumnFormatConfig; import org.apache.druid.segment.DefaultColumnFormatConfig;
import org.apache.druid.segment.join.JoinableFactoryWrapper; import org.apache.druid.segment.join.JoinableFactoryWrapper;
import org.apache.druid.server.QueryLifecycle; import org.apache.druid.server.QueryLifecycle;
@ -557,6 +558,7 @@ public class SqlTestFramework
binder.bind(DruidOperatorTable.class).in(LazySingleton.class); binder.bind(DruidOperatorTable.class).in(LazySingleton.class);
binder.bind(DataSegment.PruneSpecsHolder.class).toInstance(DataSegment.PruneSpecsHolder.DEFAULT); binder.bind(DataSegment.PruneSpecsHolder.class).toInstance(DataSegment.PruneSpecsHolder.DEFAULT);
binder.bind(DefaultColumnFormatConfig.class).toInstance(new DefaultColumnFormatConfig(null)); binder.bind(DefaultColumnFormatConfig.class).toInstance(new DefaultColumnFormatConfig(null));
binder.install(new TestSqlModule());
} }
@Provides @Provides