Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-9206

SQL:2016 datetime patterns: Backslash with single quote is parsed incorrectly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • Impala 3.3.0
    • Not Applicable
    • None
    • None
    • ghx-label-12

    Description

      Copy-paste a review comment from ajeges:

      I've found one more anomaly about apostrophe separator:

      This is succeeding although \ is not a separator:

      > select cast("2010\\'02-01" as date FORMAT "YYYY'MM-DD");
      

      This works too;

      > select cast("2010\\\'02-01" as date FORMAT "YYYY'MM-DD");
      

      This fails:

      > select cast("2010\\\\'02-01" as date FORMAT "YYYY'MM-DD");
      

      Attachments

        Activity

          People

            gaborkaszab Gabor Kaszab
            gaborkaszab Gabor Kaszab
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: