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

Use single quotes when printing out FORMAT clause within CAST.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Impala 3.3.0
    • None
    • Frontend
    • None
    • ghx-label-11

    Description

      Here the content of the FORMAT clause is surrounded by double quotes.

      select cast('2016/10/10' as date format 'YYYY/MM/DD');
      +------------------------------------------------+
      | cast('2016/10/10' as date format "yyyy/mm/dd") |
      +------------------------------------------------+
      | 2016-10-10                                     |
      +------------------------------------------------+
      

      In order to follow SQL standards this should be surrounded by single quotes regardless of how the user gave the FORMAT clause.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: