danny0405 opened a new pull request #1951:
URL: https://github.com/apache/calcite/pull/1951


   Current JSON_VALUE always has 7 operands after parsing, the operands are
   patched with defaults when creating the call.
   
   This has some drawbacks:
   
   - With a hard code operator there, it is hard for
   downstream project to override this operator.
   - The operands are patched with defaults and JSON_VALUE is always
   written to JSON_VALUE_ANY after sql-to-rel conversion, this makes
   the RexCall and plan hard to understand, the JDBC SQL was also affected.
   - The JSON_VALUE to JSON_VALUE_ANY re-written is problemic, because it
   is hard to do a ANY type to other type conversion, both for Calcite and
   downstream project.
   
   Do these changes to solve the problems:
   - Keep the operands as it is during the whole planning phrase, but only
   transform the operands during runtime;
   - Do not make JSON_VALUE to JSON_VALUE_ANY re-written anymore, the
   explicit return type specification is used directly as the rex call
   return type.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to