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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: Impala 3.3.0
    • Fix Version/s: Not Applicable
    • Component/s: None
    • Labels:
      None
    • Epic Color:
      ghx-label-12

      Description

      Copy-paste a review comment from Attila Jeges:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: