Skip to content

[Coral-Common] Rename dialect-agnostic Hive classes to Coral names#591

Open
wmoustafa wants to merge 1 commit into
linkedin:masterfrom
wmoustafa:wmoustaf/rename-coral-common
Open

[Coral-Common] Rename dialect-agnostic Hive classes to Coral names#591
wmoustafa wants to merge 1 commit into
linkedin:masterfrom
wmoustafa:wmoustaf/rename-coral-common

Conversation

@wmoustafa
Copy link
Copy Markdown
Contributor

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

Several classes in coral-common have "Hive" in their name despite being dialect-agnostic Calcite extensions with no actual Hive dependencies. This is confusing for contributors and consumers who assume these classes are Hive-specific. This PR renames them to use "Coral" names that accurately reflect their purpose.

Renames (6 classes):

Old Name New Name
HiveTypeSystem CoralTypeSystem
HiveRelBuilder CoralRelBuilder
HiveUncollect CoralUncollect
LocalMetastoreHiveDbSchema LocalMetastoreDbSchema
LocalMetastoreHiveSchema LocalMetastoreSchema
RelDataTypeToHiveTypeStringConverter RelDataTypeToTypeStringConverter

ToRelConverter is updated to use CoralTypeSystem and CoralRelBuilder.

Original Hive-named classes are retained as @Deprecated thin wrappers (extend or delegate) for backward compatibility. No breaking changes.

How was this patch tested?

  • ./gradlew :coral-common:compileJava — compiles successfully
  • ./gradlew :coral-hive:compileJava :coral-spark:compileJava :coral-trino:compileJava — downstream modules compile against deprecated wrappers
  • Verified deprecated classes correctly extend/delegate to the new Coral-named classes

Create new Coral-named classes containing all logic for classes that
are not actually Hive-specific:
- HiveTypeSystem -> CoralTypeSystem
- HiveRelBuilder -> CoralRelBuilder
- HiveUncollect -> CoralUncollect
- LocalMetastoreHiveDbSchema -> LocalMetastoreDbSchema
- LocalMetastoreHiveSchema -> LocalMetastoreSchema
- RelDataTypeToHiveTypeStringConverter -> RelDataTypeToTypeStringConverter

Update ToRelConverter to use CoralTypeSystem and CoralRelBuilder.

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