Can Coral provide stable APIs to translate expressions from hive to Presto through coral?
Usecase (As requested by Praveen Krishna):
Presto allows connectors to provide row-filters in terms of expressions. It's possible that they're defined in hiveql, and presto needs to read and transform them before applying. For this purpose, having the ability to translate expressions directly is useful.
for example, Presto can be configured to say that for queries by user U on on table tpch.tiny.orders , exclude rows for which orderKey is >= 10. This is defined as an expression written as orderKey < 10 in the configuration. Currently, Presto requires this expression to be in a form that Presto can understand. If coral allows hive --> presto translation of such expressions, then they could be expressed as hive expressions and translated at runtime.
Can Coral provide stable APIs to translate expressions from hive to Presto through coral?
Usecase (As requested by Praveen Krishna):
Presto allows connectors to provide row-filters in terms of expressions. It's possible that they're defined in hiveql, and presto needs to read and transform them before applying. For this purpose, having the ability to translate expressions directly is useful.
for example, Presto can be configured to say that for queries by user
U
on on tabletpch.tiny.orders
, exclude rows for whichorderKey is >= 10
. This is defined as an expression written asorderKey < 10
in the configuration. Currently, Presto requires this expression to be in a form that Presto can understand. If coral allows hive --> presto translation of such expressions, then they could be expressed as hive expressions and translated at runtime.