Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-5167

SqlOperator#rewriteCall does not give accurate validation error

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • 1.30.0
    • None
    • core
    • None

    Description

      As discussed in CALCITE-5118, SqlOperator#rewriteCall is done before validation, which is hard to give accurate validation messages. We prefer to use SqlRexConvertlet to do this work, hence we can make the validation error more accurate, and does not give more burden to the optimization phase.

      We should deprecate SqlOperator#rewriteCall, and move these rewriting logic to SqlRexConvertlet.

      Currently, SqlCoalesceFunction, SqlDatePartFunction, SqlJdbcFunctionCall, SqlNewOperator, SqlNullifFunction, SqlProcedureCallOperator used this mechanism, we should handle these functions in this issue.

      Attachments

        Issue Links

          Activity

            People

              libenchao Benchao Li
              libenchao Benchao Li
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: