Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-16609

Promotes the column name representation of SQL-CLI

    XMLWordPrintableJSON

Details

    Description

      The SQL-CLI now outputs the column name as the name that comes from the plan, which is not that readable sometimes, i can think of 2 cases that can be promoted:

      • Expression like "a + b" should output "a + b" (i.e. the MySQL CLI) instead of "$Expr {index}

        "

      • We should always output the alias if it's there, now, the alias in the plan may be dropped because of 2 reasons:
        1. Project remove rule would remove the project without considering the alias
        2. after CALCITE-3713, some CALC/PROJ would be reused while ignoring the column alias

      Attachments

        Activity

          People

            Unassigned Unassigned
            danny0405 Danny Chen
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: