From 707a41822b5c97d4dd0e5f4705f82a91eaab3607 Mon Sep 17 00:00:00 2001 From: Kevin Ge Date: Wed, 10 Jul 2024 17:12:40 -0400 Subject: [PATCH] remove unused --- .../transformers/GenericProjectTransformer.java | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/coral-trino/src/main/java/com/linkedin/coral/trino/rel2trino/transformers/GenericProjectTransformer.java b/coral-trino/src/main/java/com/linkedin/coral/trino/rel2trino/transformers/GenericProjectTransformer.java index 1e8bfb69b..fe68263af 100644 --- a/coral-trino/src/main/java/com/linkedin/coral/trino/rel2trino/transformers/GenericProjectTransformer.java +++ b/coral-trino/src/main/java/com/linkedin/coral/trino/rel2trino/transformers/GenericProjectTransformer.java @@ -349,23 +349,6 @@ private String relDataTypeFieldAccessString(RelDataType fromDataType, RelDataTyp } } - /** - * Checks the equivalence between fromDataType and toDataType. fromDataType is derived from Coral, which produces - * RelRecordTypes using {@link org.apache.calcite.rel.type.StructKind}.PEEK_FIELDS_NO_EXPAND while toDataType is derived - * from Calcite which uses {@link org.apache.calcite.rel.type.StructKind}.FULLY_QUALIFIED. We consider the two - * StructKinds as equivalent for our purposes here as StructKind is used only as internal data representation. - * - * Note that this comparison using the full type string is derived from {@link RelDataTypeImpl#equals(Object)}. - * - * @param fromDataType given map RelDataType - * @param toDataType desired map RelDataType - */ - private boolean areEqual(RelDataType fromDataType, RelDataType toDataType) { - String fromDataTypeFullyQualifiedStruct = - fromDataType.getFullTypeString().replace("RecordType:peek_no_expand", "RecordType"); - return fromDataTypeFullyQualifiedStruct.equals(toDataType.getFullTypeString()); - } - /** * Create a struct field access string in the form of: * ROW([selected_col_field_1], [selected_col_field_2], etc.)