Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-4989

Impala - Select * fails with reserved words in query

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 10.0, 9.3.2
    • 9.1.3
    • JDBC Connector
    • None

      Impala translator can handle reserved words in queries by quoting but doing select * the query fails in an unhelpful way. Example:
      --succeeds
      select calendar_type,
      start_date,
      calendar_year,
      quarter_structure,
      date_key,
      'month',
      week,
      day_of_month
      from warehouse.dim_advertiser_calendar;

      fails due to reserved word "month" as a column in the virtual table:
      select * from warehouse.dim_advertiser_calendar;

              rhn-engineering-shawkins Steven Hawkins
              dkrapohl@hotmail.com Donald Krapohl (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: