Skip to content

Conversation

@aastha25
Copy link
Contributor

@aastha25 aastha25 commented Jun 30, 2023

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

Prior to this PR, transformations required for Coral IR operator: substr() to make it compatible with the Trino engine were performed in the RexShuttle, TrinoRexConverter. This PR migrates the transformation logic to a Sqlshuttle, DataTypeDerivedSqlCallConverter as part of a larger effort to make engine-specific transformations part of sqlCall transformations alone.

This PR also registers 5 new Coral IR functions in the StaticHiveFunctionRegistry to enable relDataType derivation of sqlCalls with these operators. Without these, the translations in testSubstrWithTimestampOperator() would fail.

How was this patch tested?

./gradlew build
existing UTs and added new UTs
integration tests with production views

@aastha25 aastha25 merged commit 482fe22 into linkedin:master Jul 17, 2023
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.

2 participants