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

Allow table, column and field called "*"

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5.0
    • Component/s: None
    • Labels:
      None

      Description

      Currently if we see an asterisk in an identifier, we translate it to an identifier name segment called "*". If there happens to be a table, column or field called "*" we're sunk.

      Star can only validly occur in the SELECT clause (not in FROM or WHERE). Examples: select emp.* from emp, select x from sales.*, select 1 from emp where emp.* is not null.

      This task is to test with tables, columns, fields called "*", and use a special value in SqlIdentifier. Maybe the empty string would work. Names cannot be empty.

        Issue Links

          Activity

          Hide
          jcamachorodriguez Jesus Camacho Rodriguez added a comment -

          Resolved in release 1.5.0 (2015-11-10)

          Show
          jcamachorodriguez Jesus Camacho Rodriguez added a comment - Resolved in release 1.5.0 (2015-11-10)
          Show
          julianhyde Julian Hyde added a comment - Fixed in http://git-wip-us.apache.org/repos/asf/incubator-calcite/commit/1c292a9d .

            People

            • Assignee:
              julianhyde Julian Hyde
              Reporter:
              julianhyde Julian Hyde
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development