2016-12-16 20:15:59 -05:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
2018-07-11 12:55:18 -04:00
|
|
|
~ Licensed to the Apache Software Foundation (ASF) under one
|
|
|
|
~ or more contributor license agreements. See the NOTICE file
|
2016-12-16 20:15:59 -05:00
|
|
|
~ distributed with this work for additional information
|
2018-07-11 12:55:18 -04:00
|
|
|
~ regarding copyright ownership. The ASF licenses this file
|
2016-12-16 20:15:59 -05:00
|
|
|
~ to you under the Apache License, Version 2.0 (the
|
|
|
|
~ "License"); you may not use this file except in compliance
|
2018-07-11 12:55:18 -04:00
|
|
|
~ with the License. You may obtain a copy of the License at
|
2016-12-16 20:15:59 -05:00
|
|
|
~
|
2018-07-11 12:55:18 -04:00
|
|
|
~ http://www.apache.org/licenses/LICENSE-2.0
|
2016-12-16 20:15:59 -05:00
|
|
|
~
|
|
|
|
~ Unless required by applicable law or agreed to in writing,
|
|
|
|
~ software distributed under the License is distributed on an
|
|
|
|
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
2018-07-11 12:55:18 -04:00
|
|
|
~ KIND, either express or implied. See the License for the
|
2016-12-16 20:15:59 -05:00
|
|
|
~ specific language governing permissions and limitations
|
|
|
|
~ under the License.
|
|
|
|
-->
|
|
|
|
|
2022-12-06 18:54:05 -05:00
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
2016-12-16 20:15:59 -05:00
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
<artifactId>druid-sql</artifactId>
|
|
|
|
<name>druid-sql</name>
|
|
|
|
<description>Druid SQL</description>
|
|
|
|
|
|
|
|
<parent>
|
2018-08-30 12:56:26 -04:00
|
|
|
<groupId>org.apache.druid</groupId>
|
2016-12-16 20:15:59 -05:00
|
|
|
<artifactId>druid</artifactId>
|
2024-09-10 01:31:20 -04:00
|
|
|
<version>32.0.0-SNAPSHOT</version>
|
2016-12-16 20:15:59 -05:00
|
|
|
</parent>
|
|
|
|
|
|
|
|
<dependencies>
|
2019-09-09 17:37:21 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.druid</groupId>
|
|
|
|
<artifactId>druid-processing</artifactId>
|
|
|
|
<version>${project.parent.version}</version>
|
|
|
|
</dependency>
|
2016-12-16 20:15:59 -05:00
|
|
|
<dependency>
|
2018-08-30 12:56:26 -04:00
|
|
|
<groupId>org.apache.druid</groupId>
|
2016-12-16 20:15:59 -05:00
|
|
|
<artifactId>druid-server</artifactId>
|
|
|
|
<version>${project.parent.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.calcite</groupId>
|
|
|
|
<artifactId>calcite-core</artifactId>
|
2018-01-05 18:12:20 -05:00
|
|
|
<exclusions>
|
|
|
|
<!--
|
|
|
|
~ Calcite 1.15.0 uses sketches-core 0.9.0 for a profiling feature:
|
|
|
|
~ (https://issues.apache.org/jira/browse/CALCITE-1616).
|
|
|
|
~ This conflicts with druid-datasketches which uses a newer version of sketches-core.
|
|
|
|
~ Druid does not use this Calcite profiling feature, so we exclude sketches-core here.
|
|
|
|
-->
|
|
|
|
<exclusion>
|
|
|
|
<groupId>com.yahoo.datasketches</groupId>
|
|
|
|
<artifactId>sketches-core</artifactId>
|
|
|
|
</exclusion>
|
2019-11-21 00:22:55 -05:00
|
|
|
<!--
|
|
|
|
~ We don't use Calcite's YAML features.
|
|
|
|
-->
|
|
|
|
<exclusion>
|
|
|
|
<groupId>com.fasterxml.jackson.dataformat</groupId>
|
|
|
|
<artifactId>jackson-dataformat-yaml</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>org.yaml</groupId>
|
|
|
|
<artifactId>snakeyaml</artifactId>
|
|
|
|
</exclusion>
|
2018-01-05 18:12:20 -05:00
|
|
|
</exclusions>
|
2016-12-16 20:15:59 -05:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.calcite</groupId>
|
|
|
|
<artifactId>calcite-linq4j</artifactId>
|
|
|
|
</dependency>
|
2017-01-06 17:45:17 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.calcite.avatica</groupId>
|
|
|
|
<artifactId>avatica-core</artifactId>
|
|
|
|
</dependency>
|
2016-12-16 20:15:59 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.calcite.avatica</groupId>
|
|
|
|
<artifactId>avatica-server</artifactId>
|
2019-05-12 17:38:06 -04:00
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
|
|
<artifactId>jetty-http</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
2016-12-16 20:15:59 -05:00
|
|
|
</dependency>
|
2023-06-27 16:40:35 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.github.ben-manes.caffeine</groupId>
|
|
|
|
<artifactId>caffeine</artifactId>
|
|
|
|
</dependency>
|
2019-09-09 17:37:21 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.google.code.findbugs</groupId>
|
|
|
|
<artifactId>jsr305</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
|
|
<artifactId>jetty-server</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>joda-time</groupId>
|
|
|
|
<artifactId>joda-time</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
|
|
<artifactId>jackson-annotations</artifactId>
|
|
|
|
</dependency>
|
2022-02-27 18:19:28 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>jakarta.inject</groupId>
|
|
|
|
<artifactId>jakarta.inject-api</artifactId>
|
|
|
|
</dependency>
|
2019-09-09 17:37:21 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.google.inject</groupId>
|
|
|
|
<artifactId>guice</artifactId>
|
|
|
|
</dependency>
|
2020-02-04 14:33:48 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.google.inject.extensions</groupId>
|
|
|
|
<artifactId>guice-assistedinject</artifactId>
|
|
|
|
</dependency>
|
2019-09-09 17:37:21 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
|
|
<artifactId>jackson-databind</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.opencsv</groupId>
|
|
|
|
<artifactId>opencsv</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.google.inject.extensions</groupId>
|
|
|
|
<artifactId>guice-multibindings</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>javax.ws.rs</groupId>
|
|
|
|
<artifactId>jsr311-api</artifactId>
|
|
|
|
</dependency>
|
2016-12-16 20:15:59 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>io.netty</groupId>
|
2019-09-09 17:37:21 -04:00
|
|
|
<artifactId>netty</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>javax.servlet</groupId>
|
|
|
|
<artifactId>javax.servlet-api</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>it.unimi.dsi</groupId>
|
2021-06-10 10:43:18 -04:00
|
|
|
<artifactId>fastutil-core</artifactId>
|
2019-09-09 17:37:21 -04:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
|
|
<artifactId>jackson-core</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.google.guava</groupId>
|
|
|
|
<artifactId>guava</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.google.errorprone</groupId>
|
|
|
|
<artifactId>error_prone_annotations</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.calcite.avatica</groupId>
|
|
|
|
<artifactId>avatica-metrics</artifactId>
|
2016-12-16 20:15:59 -05:00
|
|
|
</dependency>
|
2019-11-21 00:22:55 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.checkerframework</groupId>
|
|
|
|
<artifactId>checker-qual</artifactId>
|
|
|
|
<version>${checkerframework.version}</version>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
2020-02-04 14:33:48 -05:00
|
|
|
<dependency>
|
2023-08-14 02:20:51 -04:00
|
|
|
<groupId>jakarta.validation</groupId>
|
|
|
|
<artifactId>jakarta.validation-api</artifactId>
|
2020-02-04 14:33:48 -05:00
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
2022-02-08 05:53:15 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>slf4j-api</artifactId>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
2023-08-11 15:47:16 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.immutables</groupId>
|
|
|
|
<artifactId>value-annotations</artifactId>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
2016-12-16 20:15:59 -05:00
|
|
|
|
|
|
|
<!-- Tests -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>junit</groupId>
|
|
|
|
<artifactId>junit</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2024-05-02 02:12:42 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>net.hydromatic</groupId>
|
|
|
|
<artifactId>quidem</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.httpcomponents</groupId>
|
|
|
|
<artifactId>httpclient</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.httpcomponents</groupId>
|
|
|
|
<artifactId>httpcore</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2024-03-01 04:31:57 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.junit.jupiter</groupId>
|
|
|
|
<artifactId>junit-jupiter-api</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.junit.jupiter</groupId>
|
|
|
|
<artifactId>junit-jupiter-engine</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
Update Calcite*Test to use junit5 (#16106)
* Update Calcite*Test to use junit5
* change the way temp dirs are handled
* add openrewrite workflow to safeguard upgrade
* replace junitparamrunner with standard junit5 parametered tests
* update a few rules to junit5 api
* lots of boring changes
* cleanup QueryLogHook
* cleanup
* fix compile error: ARRAYS_DATASOURCE
* fix test
* remove enclosed
* empty
+TEST:TDigestSketchSqlAggregatorTest,HllSketchSqlAggregatorTest,DoublesSketchSqlAggregatorTest,ThetaSketchSqlAggregatorTest,ArrayOfDoublesSketchSqlAggregatorTest,BloomFilterSqlAggregatorTest,BloomDimFilterSqlTest,CatalogIngestionTest,CatalogQueryTest,FixedBucketsHistogramQuantileSqlAggregatorTest,QuantileSqlAggregatorTest,MSQArraysTest,MSQDataSketchesTest,MSQExportTest,MSQFaultsTest,MSQInsertTest,MSQLoadedSegmentTests,MSQParseExceptionsTest,MSQReplaceTest,MSQSelectTest,InsertLockPreemptedFaultTest,MSQWarningsTest,SqlMSQStatementResourcePostTest,SqlStatementResourceTest,CalciteSelectJoinQueryMSQTest,CalciteSelectQueryMSQTest,CalciteUnionQueryMSQTest,MSQTestBase,VarianceSqlAggregatorTest,SleepSqlTest,SqlRowTransformerTest,DruidAvaticaHandlerTest,DruidStatementTest,BaseCalciteQueryTest,CalciteArraysQueryTest,CalciteCorrelatedQueryTest,CalciteExplainQueryTest,CalciteExportTest,CalciteIngestionDmlTest,CalciteInsertDmlTest,CalciteJoinQueryTest,CalciteLookupFunctionQueryTest,CalciteMultiValueStringQueryTest,CalciteNestedDataQueryTest,CalciteParameterQueryTest,CalciteQueryTest,CalciteReplaceDmlTest,CalciteScanSignatureTest,CalciteSelectQueryTest,CalciteSimpleQueryTest,CalciteSubqueryTest,CalciteSysQueryTest,CalciteTableAppendTest,CalciteTimeBoundaryQueryTest,CalciteUnionQueryTest,CalciteWindowQueryTest,DecoupledPlanningCalciteJoinQueryTest,DecoupledPlanningCalciteQueryTest,DecoupledPlanningCalciteUnionQueryTest,DrillWindowQueryTest,DruidPlannerResourceAnalyzeTest,IngestTableFunctionTest,QueryTestRunner,SqlTestFrameworkConfig,SqlAggregationModuleTest,ExpressionsTest,GreatestExpressionTest,IPv4AddressMatchExpressionTest,IPv4AddressParseExpressionTest,IPv4AddressStringifyExpressionTest,LeastExpressionTest,TimeFormatOperatorConversionTest,CombineAndSimplifyBoundsTest,FiltrationTest,SqlQueryTest,CalcitePlannerModuleTest,CalcitesTest,DruidCalciteSchemaModuleTest,DruidSchemaNoDataInitTest,InformationSchemaTest,NamedDruidSchemaTest,NamedLookupSchemaTest,NamedSystemSchemaTest,RootSchemaProviderTest,SystemSchemaTest,CalciteTestBase,SqlResourceTest
* use @Nested
* add rule to remove enclosed; upgrade surefire
* remove enclosed
* cleanup
* add comment about surefire exclude
2024-03-19 07:05:12 -04:00
|
|
|
<groupId>org.junit.jupiter</groupId>
|
|
|
|
<artifactId>junit-jupiter-migrationsupport</artifactId>
|
2024-03-01 04:31:57 -05:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2024-03-05 20:10:13 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.junit.jupiter</groupId>
|
|
|
|
<artifactId>junit-jupiter-params</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
Update Calcite*Test to use junit5 (#16106)
* Update Calcite*Test to use junit5
* change the way temp dirs are handled
* add openrewrite workflow to safeguard upgrade
* replace junitparamrunner with standard junit5 parametered tests
* update a few rules to junit5 api
* lots of boring changes
* cleanup QueryLogHook
* cleanup
* fix compile error: ARRAYS_DATASOURCE
* fix test
* remove enclosed
* empty
+TEST:TDigestSketchSqlAggregatorTest,HllSketchSqlAggregatorTest,DoublesSketchSqlAggregatorTest,ThetaSketchSqlAggregatorTest,ArrayOfDoublesSketchSqlAggregatorTest,BloomFilterSqlAggregatorTest,BloomDimFilterSqlTest,CatalogIngestionTest,CatalogQueryTest,FixedBucketsHistogramQuantileSqlAggregatorTest,QuantileSqlAggregatorTest,MSQArraysTest,MSQDataSketchesTest,MSQExportTest,MSQFaultsTest,MSQInsertTest,MSQLoadedSegmentTests,MSQParseExceptionsTest,MSQReplaceTest,MSQSelectTest,InsertLockPreemptedFaultTest,MSQWarningsTest,SqlMSQStatementResourcePostTest,SqlStatementResourceTest,CalciteSelectJoinQueryMSQTest,CalciteSelectQueryMSQTest,CalciteUnionQueryMSQTest,MSQTestBase,VarianceSqlAggregatorTest,SleepSqlTest,SqlRowTransformerTest,DruidAvaticaHandlerTest,DruidStatementTest,BaseCalciteQueryTest,CalciteArraysQueryTest,CalciteCorrelatedQueryTest,CalciteExplainQueryTest,CalciteExportTest,CalciteIngestionDmlTest,CalciteInsertDmlTest,CalciteJoinQueryTest,CalciteLookupFunctionQueryTest,CalciteMultiValueStringQueryTest,CalciteNestedDataQueryTest,CalciteParameterQueryTest,CalciteQueryTest,CalciteReplaceDmlTest,CalciteScanSignatureTest,CalciteSelectQueryTest,CalciteSimpleQueryTest,CalciteSubqueryTest,CalciteSysQueryTest,CalciteTableAppendTest,CalciteTimeBoundaryQueryTest,CalciteUnionQueryTest,CalciteWindowQueryTest,DecoupledPlanningCalciteJoinQueryTest,DecoupledPlanningCalciteQueryTest,DecoupledPlanningCalciteUnionQueryTest,DrillWindowQueryTest,DruidPlannerResourceAnalyzeTest,IngestTableFunctionTest,QueryTestRunner,SqlTestFrameworkConfig,SqlAggregationModuleTest,ExpressionsTest,GreatestExpressionTest,IPv4AddressMatchExpressionTest,IPv4AddressParseExpressionTest,IPv4AddressStringifyExpressionTest,LeastExpressionTest,TimeFormatOperatorConversionTest,CombineAndSimplifyBoundsTest,FiltrationTest,SqlQueryTest,CalcitePlannerModuleTest,CalcitesTest,DruidCalciteSchemaModuleTest,DruidSchemaNoDataInitTest,InformationSchemaTest,NamedDruidSchemaTest,NamedLookupSchemaTest,NamedSystemSchemaTest,RootSchemaProviderTest,SystemSchemaTest,CalciteTestBase,SqlResourceTest
* use @Nested
* add rule to remove enclosed; upgrade surefire
* remove enclosed
* cleanup
* add comment about surefire exclude
2024-03-19 07:05:12 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.junit.vintage</groupId>
|
|
|
|
<artifactId>junit-vintage-engine</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.opentest4j</groupId>
|
|
|
|
<artifactId>opentest4j</artifactId>
|
|
|
|
<version>1.3.0</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2024-03-05 20:10:13 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
|
<artifactId>commons-lang3</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2020-05-28 22:10:26 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>pl.pragmatists</groupId>
|
|
|
|
<artifactId>JUnitParams</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2023-03-10 06:12:08 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
|
<artifactId>commons-text</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2016-12-16 20:15:59 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.calcite</groupId>
|
2023-08-11 15:47:16 -04:00
|
|
|
<artifactId>calcite-testkit</artifactId>
|
2016-12-16 20:15:59 -05:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2017-03-14 00:56:16 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.easymock</groupId>
|
|
|
|
<artifactId>easymock</artifactId>
|
2022-09-12 04:40:06 -04:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2022-12-06 18:54:05 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.fasterxml.jackson.dataformat</groupId>
|
|
|
|
<artifactId>jackson-dataformat-yaml</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2022-09-12 04:40:06 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>commons-io</groupId>
|
|
|
|
<artifactId>commons-io</artifactId>
|
2017-03-14 00:56:16 -04:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2016-12-16 20:15:59 -05:00
|
|
|
<dependency>
|
2018-08-30 12:56:26 -04:00
|
|
|
<groupId>org.apache.druid</groupId>
|
2016-12-16 20:15:59 -05:00
|
|
|
<artifactId>druid-processing</artifactId>
|
|
|
|
<version>${project.parent.version}</version>
|
|
|
|
<type>test-jar</type>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2017-10-12 22:22:24 -04:00
|
|
|
<dependency>
|
2018-08-30 12:56:26 -04:00
|
|
|
<groupId>org.apache.druid</groupId>
|
2017-10-12 22:22:24 -04:00
|
|
|
<artifactId>druid-server</artifactId>
|
|
|
|
<version>${project.parent.version}</version>
|
|
|
|
<type>test-jar</type>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2023-06-19 04:11:13 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.hamcrest</groupId>
|
|
|
|
<artifactId>hamcrest-all</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2019-09-09 17:37:21 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.hamcrest</groupId>
|
|
|
|
<artifactId>hamcrest-core</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2020-02-19 16:09:20 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>nl.jqno.equalsverifier</groupId>
|
|
|
|
<artifactId>equalsverifier</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2021-04-07 13:04:47 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.mockito</groupId>
|
|
|
|
<artifactId>mockito-core</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2022-12-06 18:54:05 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.jdbi</groupId>
|
|
|
|
<artifactId>jdbi</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2024-02-21 10:54:50 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.reflections</groupId>
|
|
|
|
<artifactId>reflections</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2016-12-16 20:15:59 -05:00
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<goals>
|
|
|
|
<goal>test-jar</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2022-02-08 05:53:15 -05:00
|
|
|
|
2024-06-13 02:47:50 -04:00
|
|
|
<!-- Extracts the base parser from the calcite-core artifcat. -->
|
|
|
|
<!-- This is provided to have the base available - to compare changes to -->
|
2022-02-08 05:53:15 -05:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>unpack-parser-template</id>
|
2022-12-08 16:56:02 -05:00
|
|
|
<phase>generate-sources</phase>
|
2022-02-08 05:53:15 -05:00
|
|
|
<goals>
|
|
|
|
<goal>unpack</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<artifactItems>
|
|
|
|
<artifactItem>
|
|
|
|
<groupId>org.apache.calcite</groupId>
|
|
|
|
<artifactId>calcite-core</artifactId>
|
|
|
|
<version>${calcite.version}</version>
|
|
|
|
<type>jar</type>
|
|
|
|
<overWrite>true</overWrite>
|
2024-06-13 02:47:50 -04:00
|
|
|
<outputDirectory>${project.build.directory}/calcite-base-parser</outputDirectory>
|
|
|
|
<includes>codegen/**</includes>
|
2023-08-11 15:47:16 -04:00
|
|
|
</artifactItem>
|
2022-02-08 05:53:15 -05:00
|
|
|
</artifactItems>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
2024-06-13 02:47:50 -04:00
|
|
|
<!-- Applies the fmpp templates to produce the final Parser.jj -->
|
2022-02-08 05:53:15 -05:00
|
|
|
<plugin>
|
|
|
|
<groupId>com.googlecode.fmpp-maven-plugin</groupId>
|
|
|
|
<artifactId>fmpp-maven-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>generate-fmpp-sources</id>
|
|
|
|
<phase>generate-sources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>generate</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2024-06-13 02:47:50 -04:00
|
|
|
<cfgFile>src/main/codegen/config.fmpp</cfgFile>
|
2022-12-08 16:56:02 -05:00
|
|
|
<outputDirectory>${project.build.directory}/generated-sources</outputDirectory>
|
2024-06-13 02:47:50 -04:00
|
|
|
<templateDirectory>src/main/codegen/templates</templateDirectory>
|
2022-02-08 05:53:15 -05:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
2022-12-08 16:56:02 -05:00
|
|
|
<!-- Creates a Java class for the custom parser from Parser.jj -->
|
2022-02-08 05:53:15 -05:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>javacc-maven-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>generate-sources</phase>
|
|
|
|
<id>javacc</id>
|
|
|
|
<goals>
|
|
|
|
<goal>javacc</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2022-12-08 16:56:02 -05:00
|
|
|
<sourceDirectory>${project.build.directory}/generated-sources/javacc</sourceDirectory>
|
2022-02-08 05:53:15 -05:00
|
|
|
<includes>
|
2022-12-08 16:56:02 -05:00
|
|
|
<include>Parser.jj</include>
|
2022-02-08 05:53:15 -05:00
|
|
|
</includes>
|
|
|
|
<lookAhead>2</lookAhead>
|
|
|
|
<isStatic>false</isStatic>
|
2022-12-08 16:56:02 -05:00
|
|
|
<outputDirectory>${project.build.directory}/generated-sources</outputDirectory>
|
2022-02-08 05:53:15 -05:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
2023-05-15 10:59:51 -04:00
|
|
|
<!-- Adds the path of the generated parser to the build path -->
|
2022-02-08 05:53:15 -05:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>build-helper-maven-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>add-source</id>
|
|
|
|
<phase>generate-sources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>add-source</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<sources>
|
2022-12-08 16:56:02 -05:00
|
|
|
<source>src/generated-sources</source>
|
2022-02-08 05:53:15 -05:00
|
|
|
</sources>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2016-12-16 20:15:59 -05:00
|
|
|
</plugins>
|
|
|
|
</build>
|
2022-02-08 05:53:15 -05:00
|
|
|
<!-- Build for Druid's custom SQL parser complete -->
|
2016-12-16 20:15:59 -05:00
|
|
|
|
|
|
|
</project>
|