Closed findinpath closed 11 months ago
I think you would want to implement an operator in coral-trino
similar to TrinoElementAtFunction and have the transformer convert to that one as opposed to creating a Hive function (operator). Operators currently part of "Hive Function Registry" will end up in Coral common as they capture Coral IR, and not a language specific set of operators.
@wmoustafa
I created an alternative PR https://github.com/linkedin/coral/pull/465 to follow-up on your request
think you would want to implement an operator in coral-trino similar to TrinoElementAtFunction
However, I failed in getting it to work exactly because the function was not mentioned in StaticHiveFunctionRegistry
.
StaticHiveFunctionRegistry
contains already Trino (not Hive) specific content:
I believe that, in the current state of the coral
library, my current PR is the right approach to fix the from_unixtime
regresssion reported on https://github.com/linkedin/coral/issues/459.
Superseded by https://github.com/linkedin/coral/pull/467
What changes are proposed in this pull request, and why are they necessary?
Avoid the accidental translation of the Trino
from_unixtime
introduced through #426Context https://github.com/linkedin/coral/issues/459#issuecomment-1762160693
Fixes https://github.com/linkedin/coral/issues/459
How was this patch tested?
Regular unit tests