diff --git a/coral-presto/build.gradle b/coral-trino/build.gradle similarity index 100% rename from coral-presto/build.gradle rename to coral-trino/build.gradle diff --git a/coral-presto/src/main/java/com/linkedin/coral/presto/rel2presto/Calcite2PrestoUDFConverter.java b/coral-trino/src/main/java/com/linkedin/coral/presto/rel2presto/Calcite2PrestoUDFConverter.java similarity index 100% rename from coral-presto/src/main/java/com/linkedin/coral/presto/rel2presto/Calcite2PrestoUDFConverter.java rename to coral-trino/src/main/java/com/linkedin/coral/presto/rel2presto/Calcite2PrestoUDFConverter.java diff --git a/coral-presto/src/main/java/com/linkedin/coral/presto/rel2presto/CalcitePrestoUDFMap.java b/coral-trino/src/main/java/com/linkedin/coral/presto/rel2presto/CalcitePrestoUDFMap.java similarity index 100% rename from coral-presto/src/main/java/com/linkedin/coral/presto/rel2presto/CalcitePrestoUDFMap.java rename to coral-trino/src/main/java/com/linkedin/coral/presto/rel2presto/CalcitePrestoUDFMap.java diff --git a/coral-presto/src/main/java/com/linkedin/coral/presto/rel2presto/HiveToPrestoConverter.java b/coral-trino/src/main/java/com/linkedin/coral/presto/rel2presto/HiveToPrestoConverter.java similarity index 100% rename from coral-presto/src/main/java/com/linkedin/coral/presto/rel2presto/HiveToPrestoConverter.java rename to coral-trino/src/main/java/com/linkedin/coral/presto/rel2presto/HiveToPrestoConverter.java diff --git a/coral-presto/src/main/java/com/linkedin/coral/presto/rel2presto/PrestoSqlDialect.java b/coral-trino/src/main/java/com/linkedin/coral/presto/rel2presto/PrestoSqlDialect.java similarity index 100% rename from coral-presto/src/main/java/com/linkedin/coral/presto/rel2presto/PrestoSqlDialect.java rename to coral-trino/src/main/java/com/linkedin/coral/presto/rel2presto/PrestoSqlDialect.java diff --git a/coral-presto/src/main/java/com/linkedin/coral/presto/rel2presto/PrestoSqlRewriter.java b/coral-trino/src/main/java/com/linkedin/coral/presto/rel2presto/PrestoSqlRewriter.java similarity index 100% rename from coral-presto/src/main/java/com/linkedin/coral/presto/rel2presto/PrestoSqlRewriter.java rename to coral-trino/src/main/java/com/linkedin/coral/presto/rel2presto/PrestoSqlRewriter.java diff --git a/coral-presto/src/main/java/com/linkedin/coral/presto/rel2presto/PrestoTryCastFunction.java b/coral-trino/src/main/java/com/linkedin/coral/presto/rel2presto/PrestoTryCastFunction.java similarity index 100% rename from coral-presto/src/main/java/com/linkedin/coral/presto/rel2presto/PrestoTryCastFunction.java rename to coral-trino/src/main/java/com/linkedin/coral/presto/rel2presto/PrestoTryCastFunction.java diff --git a/coral-presto/src/main/java/com/linkedin/coral/presto/rel2presto/RelToPrestoConverter.java b/coral-trino/src/main/java/com/linkedin/coral/presto/rel2presto/RelToPrestoConverter.java similarity index 100% rename from coral-presto/src/main/java/com/linkedin/coral/presto/rel2presto/RelToPrestoConverter.java rename to coral-trino/src/main/java/com/linkedin/coral/presto/rel2presto/RelToPrestoConverter.java diff --git a/coral-presto/src/main/java/com/linkedin/coral/presto/rel2presto/UDFMapUtils.java b/coral-trino/src/main/java/com/linkedin/coral/presto/rel2presto/UDFMapUtils.java similarity index 100% rename from coral-presto/src/main/java/com/linkedin/coral/presto/rel2presto/UDFMapUtils.java rename to coral-trino/src/main/java/com/linkedin/coral/presto/rel2presto/UDFMapUtils.java diff --git a/coral-presto/src/main/java/com/linkedin/coral/presto/rel2presto/UDFTransformer.java b/coral-trino/src/main/java/com/linkedin/coral/presto/rel2presto/UDFTransformer.java similarity index 100% rename from coral-presto/src/main/java/com/linkedin/coral/presto/rel2presto/UDFTransformer.java rename to coral-trino/src/main/java/com/linkedin/coral/presto/rel2presto/UDFTransformer.java diff --git a/coral-presto/src/main/java/com/linkedin/coral/presto/rel2presto/functions/GenericProjectToPrestoConverter.java b/coral-trino/src/main/java/com/linkedin/coral/presto/rel2presto/functions/GenericProjectToPrestoConverter.java similarity index 100% rename from coral-presto/src/main/java/com/linkedin/coral/presto/rel2presto/functions/GenericProjectToPrestoConverter.java rename to coral-trino/src/main/java/com/linkedin/coral/presto/rel2presto/functions/GenericProjectToPrestoConverter.java diff --git a/coral-presto/src/main/java/com/linkedin/coral/presto/rel2presto/functions/GenericTemplateFunction.java b/coral-trino/src/main/java/com/linkedin/coral/presto/rel2presto/functions/GenericTemplateFunction.java similarity index 100% rename from coral-presto/src/main/java/com/linkedin/coral/presto/rel2presto/functions/GenericTemplateFunction.java rename to coral-trino/src/main/java/com/linkedin/coral/presto/rel2presto/functions/GenericTemplateFunction.java diff --git a/coral-presto/src/main/java/com/linkedin/coral/presto/rel2presto/functions/PrestoArrayTransformFunction.java b/coral-trino/src/main/java/com/linkedin/coral/presto/rel2presto/functions/PrestoArrayTransformFunction.java similarity index 100% rename from coral-presto/src/main/java/com/linkedin/coral/presto/rel2presto/functions/PrestoArrayTransformFunction.java rename to coral-trino/src/main/java/com/linkedin/coral/presto/rel2presto/functions/PrestoArrayTransformFunction.java diff --git a/coral-presto/src/main/java/com/linkedin/coral/presto/rel2presto/functions/PrestoElementAtFunction.java b/coral-trino/src/main/java/com/linkedin/coral/presto/rel2presto/functions/PrestoElementAtFunction.java similarity index 100% rename from coral-presto/src/main/java/com/linkedin/coral/presto/rel2presto/functions/PrestoElementAtFunction.java rename to coral-trino/src/main/java/com/linkedin/coral/presto/rel2presto/functions/PrestoElementAtFunction.java diff --git a/coral-presto/src/main/java/com/linkedin/coral/presto/rel2presto/functions/PrestoKeywordsConverter.java b/coral-trino/src/main/java/com/linkedin/coral/presto/rel2presto/functions/PrestoKeywordsConverter.java similarity index 100% rename from coral-presto/src/main/java/com/linkedin/coral/presto/rel2presto/functions/PrestoKeywordsConverter.java rename to coral-trino/src/main/java/com/linkedin/coral/presto/rel2presto/functions/PrestoKeywordsConverter.java diff --git a/coral-presto/src/main/java/com/linkedin/coral/presto/rel2presto/functions/PrestoMapTransformValuesFunction.java b/coral-trino/src/main/java/com/linkedin/coral/presto/rel2presto/functions/PrestoMapTransformValuesFunction.java similarity index 100% rename from coral-presto/src/main/java/com/linkedin/coral/presto/rel2presto/functions/PrestoMapTransformValuesFunction.java rename to coral-trino/src/main/java/com/linkedin/coral/presto/rel2presto/functions/PrestoMapTransformValuesFunction.java diff --git a/coral-presto/src/main/java/com/linkedin/coral/presto/rel2presto/functions/PrestoStructCastRowFunction.java b/coral-trino/src/main/java/com/linkedin/coral/presto/rel2presto/functions/PrestoStructCastRowFunction.java similarity index 100% rename from coral-presto/src/main/java/com/linkedin/coral/presto/rel2presto/functions/PrestoStructCastRowFunction.java rename to coral-trino/src/main/java/com/linkedin/coral/presto/rel2presto/functions/PrestoStructCastRowFunction.java diff --git a/coral-presto/src/main/java/com/linkedin/coral/presto/rel2presto/functions/RelDataTypeToPrestoTypeStringConverter.java b/coral-trino/src/main/java/com/linkedin/coral/presto/rel2presto/functions/RelDataTypeToPrestoTypeStringConverter.java similarity index 100% rename from coral-presto/src/main/java/com/linkedin/coral/presto/rel2presto/functions/RelDataTypeToPrestoTypeStringConverter.java rename to coral-trino/src/main/java/com/linkedin/coral/presto/rel2presto/functions/RelDataTypeToPrestoTypeStringConverter.java diff --git a/coral-presto/src/test/java/com/linkedin/coral/presto/rel2presto/HiveToPrestoConverterTest.java b/coral-trino/src/test/java/com/linkedin/coral/presto/rel2presto/HiveToPrestoConverterTest.java similarity index 100% rename from coral-presto/src/test/java/com/linkedin/coral/presto/rel2presto/HiveToPrestoConverterTest.java rename to coral-trino/src/test/java/com/linkedin/coral/presto/rel2presto/HiveToPrestoConverterTest.java diff --git a/coral-presto/src/test/java/com/linkedin/coral/presto/rel2presto/RelToPrestoConverterTest.java b/coral-trino/src/test/java/com/linkedin/coral/presto/rel2presto/RelToPrestoConverterTest.java similarity index 100% rename from coral-presto/src/test/java/com/linkedin/coral/presto/rel2presto/RelToPrestoConverterTest.java rename to coral-trino/src/test/java/com/linkedin/coral/presto/rel2presto/RelToPrestoConverterTest.java diff --git a/coral-presto/src/test/java/com/linkedin/coral/presto/rel2presto/TestTable.java b/coral-trino/src/test/java/com/linkedin/coral/presto/rel2presto/TestTable.java similarity index 98% rename from coral-presto/src/test/java/com/linkedin/coral/presto/rel2presto/TestTable.java rename to coral-trino/src/test/java/com/linkedin/coral/presto/rel2presto/TestTable.java index 0a3c0990f..b282561f7 100644 --- a/coral-presto/src/test/java/com/linkedin/coral/presto/rel2presto/TestTable.java +++ b/coral-trino/src/test/java/com/linkedin/coral/presto/rel2presto/TestTable.java @@ -1,5 +1,5 @@ /** - * Copyright 2017-2020 LinkedIn Corporation. All rights reserved. + * Copyright 2017-2021 LinkedIn Corporation. All rights reserved. * Licensed under the BSD-2 Clause license. * See LICENSE in the project root for license information. */ diff --git a/coral-presto/src/test/java/com/linkedin/coral/presto/rel2presto/TestUtils.java b/coral-trino/src/test/java/com/linkedin/coral/presto/rel2presto/TestUtils.java similarity index 100% rename from coral-presto/src/test/java/com/linkedin/coral/presto/rel2presto/TestUtils.java rename to coral-trino/src/test/java/com/linkedin/coral/presto/rel2presto/TestUtils.java diff --git a/coral-presto/src/test/java/com/linkedin/coral/presto/rel2presto/UDFTransformerTest.java b/coral-trino/src/test/java/com/linkedin/coral/presto/rel2presto/UDFTransformerTest.java similarity index 99% rename from coral-presto/src/test/java/com/linkedin/coral/presto/rel2presto/UDFTransformerTest.java rename to coral-trino/src/test/java/com/linkedin/coral/presto/rel2presto/UDFTransformerTest.java index b9235bbe1..73e167a84 100644 --- a/coral-presto/src/test/java/com/linkedin/coral/presto/rel2presto/UDFTransformerTest.java +++ b/coral-trino/src/test/java/com/linkedin/coral/presto/rel2presto/UDFTransformerTest.java @@ -1,5 +1,5 @@ /** - * Copyright 2017-2020 LinkedIn Corporation. All rights reserved. + * Copyright 2017-2021 LinkedIn Corporation. All rights reserved. * Licensed under the BSD-2 Clause license. * See LICENSE in the project root for license information. */ diff --git a/coral-presto/src/test/java/com/linkedin/coral/presto/rel2presto/functions/RelDataTypeToPrestoTypeStringConverterTest.java b/coral-trino/src/test/java/com/linkedin/coral/presto/rel2presto/functions/RelDataTypeToPrestoTypeStringConverterTest.java similarity index 99% rename from coral-presto/src/test/java/com/linkedin/coral/presto/rel2presto/functions/RelDataTypeToPrestoTypeStringConverterTest.java rename to coral-trino/src/test/java/com/linkedin/coral/presto/rel2presto/functions/RelDataTypeToPrestoTypeStringConverterTest.java index a753c2ebd..cdcf3c3a0 100644 --- a/coral-presto/src/test/java/com/linkedin/coral/presto/rel2presto/functions/RelDataTypeToPrestoTypeStringConverterTest.java +++ b/coral-trino/src/test/java/com/linkedin/coral/presto/rel2presto/functions/RelDataTypeToPrestoTypeStringConverterTest.java @@ -1,5 +1,5 @@ /** - * Copyright 2019-2020 LinkedIn Corporation. All rights reserved. + * Copyright 2019-2021 LinkedIn Corporation. All rights reserved. * Licensed under the BSD-2 Clause license. * See LICENSE in the project root for license information. */ diff --git a/coral-presto/src/test/resources/hive.xml b/coral-trino/src/test/resources/hive.xml similarity index 100% rename from coral-presto/src/test/resources/hive.xml rename to coral-trino/src/test/resources/hive.xml diff --git a/settings.gradle b/settings.gradle index 9c8ac89c8..2377e2999 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,10 +1,10 @@ def modules = [ 'coral-hive', 'coral-pig', - 'coral-presto', 'coral-spark', 'coral-schema', - 'coral-spark-plan' + 'coral-spark-plan', + 'coral-trino' ] modules.each { module ->