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

Teiid - Queries Containing Both String Filters With Quotes and Timestamp Fail

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Can't Do
    • Icon: Major Major
    • None
    • 8.6
    • XML Planner/Processor
    • None
    • Hide

      – Fails

      Select day_date, month_name from warehouse.dim_date

      where

      "day_date" >= TimestampAdd(SQL_TSI_DAY, 1, '2020-09-17')

      and

      month_name != 'Tuesday''s'

      limit 5

      ;

      --Succeeds and pushes down the date filter

      Select day_date, month_name from warehouse.dim_date

      where

      "day_date" >= TimestampAdd(SQL_TSI_DAY, 1, '2020-09-17')

      – and

      – month_name != 'Tuesday''s'

      limit 5

      ;

      – Succeeds and pushes down the string filter

      Select day_date, month_name from warehouse.dim_date

      where

      – "day_date" >= TimestampAdd(SQL_TSI_DAY, 1, '2020-09-17')

      – and

      month_name != 'Tuesday''s'

      limit 5

      ;

      limit 5

      ;

      Show
      – Fails Select day_date, month_name from warehouse.dim_date where "day_date" >= TimestampAdd(SQL_TSI_DAY, 1, '2020-09-17') and month_name != 'Tuesday''s' limit 5 ; --Succeeds and pushes down the date filter Select day_date, month_name from warehouse.dim_date where "day_date" >= TimestampAdd(SQL_TSI_DAY, 1, '2020-09-17') – and – month_name != 'Tuesday''s' limit 5 ; – Succeeds and pushes down the string filter Select day_date, month_name from warehouse.dim_date where – "day_date" >= TimestampAdd(SQL_TSI_DAY, 1, '2020-09-17') – and month_name != 'Tuesday''s' limit 5 ; limit 5 ;
    • Undefined

      Combining filter with quotes in strings and TimestampAdd causes query to fail:

       

            rhn-engineering-shawkins Steven Hawkins
            johnmwcr John Cockson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: