Skip to content

[Coral-Hive/Spark/Trino] Rename dialect-agnostic Hive classes to Coral names#592

Open
wmoustafa wants to merge 1 commit intolinkedin:masterfrom
wmoustafa:wmoustaf/rename-coral-hive
Open

[Coral-Hive/Spark/Trino] Rename dialect-agnostic Hive classes to Coral names#592
wmoustafa wants to merge 1 commit intolinkedin:masterfrom
wmoustafa:wmoustaf/rename-coral-hive

Conversation

@wmoustafa
Copy link
Copy Markdown
Contributor

What changes are proposed in this pull request, and why are they necessary?

Several classes across coral-hive, coral-spark, and coral-trino have "Hive" in their name despite being dialect-agnostic Calcite extensions. This PR renames them to "Coral" names to accurately reflect that they are not Hive-specific.

coral-hive (12 classes):

Old Name New Name
HiveRexBuilder CoralRexBuilder
HiveSqlConformance CoralSqlConformance
HiveSqlToRelConverter CoralSqlToRelConverter
HiveSqlValidator CoralSqlValidator
HiveViewExpander CoralViewExpander
HiveFunction CoralFunction
HiveExplodeOperator CoralExplodeOperator
HiveJsonTupleOperator CoralJsonTupleOperator
HiveNamedStructFunction CoralNamedStructFunction
HivePosExplodeOperator CoralPosExplodeOperator
HiveRLikeOperator CoralRLikeOperator
StaticHiveFunctionRegistry StaticCoralFunctionRegistry

coral-spark & coral-trino (1 class each):

Old Name New Name
HiveUDFTransformer CoralUDFTransformer

Original Hive-named classes are retained as @Deprecated thin wrappers for backward compatibility. No breaking changes.

How was this patch tested?

  • ./gradlew :coral-hive:compileJava :coral-spark:compileJava :coral-trino:compileJava — all 3 modules compile successfully
  • Verified deprecated classes correctly extend/delegate to the new Coral-named classes
  • Verified no internal references broke within each module

Create new Coral-named classes for dialect-agnostic implementations in
coral-hive (12 classes), coral-spark (1 class), and coral-trino (1 class):
- HiveRexBuilder -> CoralRexBuilder
- HiveSqlConformance -> CoralSqlConformance
- HiveSqlToRelConverter -> CoralSqlToRelConverter
- HiveSqlValidator -> CoralSqlValidator
- HiveViewExpander -> CoralViewExpander
- HiveFunction -> CoralFunction
- HiveExplodeOperator -> CoralExplodeOperator
- HiveJsonTupleOperator -> CoralJsonTupleOperator
- HiveNamedStructFunction -> CoralNamedStructFunction
- HivePosExplodeOperator -> CoralPosExplodeOperator
- HiveRLikeOperator -> CoralRLikeOperator
- StaticHiveFunctionRegistry -> StaticCoralFunctionRegistry
- HiveUDFTransformer -> CoralUDFTransformer (in coral-spark and coral-trino)

Original Hive-named classes are retained as @deprecated thin wrappers
for backward compatibility.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant