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

Impala - Select * fails with reserved words in query

    • 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;

            [TEIID-4989] Impala - Select * fails with reserved words in query

            Added the missing quoting.

            We should probably change the default import to use JDBC DatabaseMetaData now that support has matured.

            Steven Hawkins added a comment - Added the missing quoting. We should probably change the default import to use JDBC DatabaseMetaData now that support has matured.

            This happens when using the default import, but not with the useDatabaseMetaData option correct?

            Steven Hawkins added a comment - This happens when using the default import, but not with the useDatabaseMetaData option correct?

              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: