Skip to content

Commit

Permalink
remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinGe00 committed Jul 10, 2024
1 parent 87ddb5e commit 707a418
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.)
Expand Down

0 comments on commit 707a418

Please sign in to comment.