Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-2867 JSON support
  3. CALCITE-2670

Combine similar JSON aggregate functions in operator table

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.18.0
    • core
    • None

    Description

      In current code master of Calcite, operator JSON_ARRAYAGG and JSON_OBJECTAGG are separated to JSON_ARRAYAGG_NULL_ON_NULL, JSON_ARRAYAGG_ABSENT_ON_NULL, JSON_OBJECTAGG_NULL_ON_NULL and JSON_OBJECTAGG_ABSENT_ON_NULL in SqlStdOperatorTable.java. This is OK for now, but may deliver more difficulty on extending syntax of JSON_ARRAYAGG and JSON_OBJECTAGG and on implementing logical plan by adapters.

      This is basically to combine the 4 operators to 2, this is a improvement list:

      1. Combine JSON_ARRAYAGG_NULL_ON_NULL and JSON_ARRAYAGG_ABSENT_ON_NULL;
      2. Combine JSON_OBJECTAGG_NULL_ON_NULL and JSON_OBJECTAGG_ABSENT_ON_NULL;
      3. SYMBOL type Support for JavaTypeFactoryImpl#getJavaClass This is to generate Enum java type for SYMBOL;
      4. Add SQL-to-Rel test cases for JSON functions.

      Attachments

        Issue Links

          Activity

            People

              julianhyde Julian Hyde
              zhztheplayer Hongze Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: