Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-4690

Error when executing query with CHARACTER SET in Redshift

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      Redshift does not support character sets in data types. In fact it seems that it only supports UTF-8. As a result any appearance of the CHARACTER SET clause in a query leads to errors.

      select cast (col1 as varchar(3) CHARACTER SET "ISO-8859-1") from test;
      
      Error: ERROR: type "pg_catalog.varchar_iso-8859-1" does not exist (state=42704,code=0)
      

      Even if CHARACTER SET clause is not explicitly present in the original query it might appear in the generated SQL via RelToSqlConverter due to casts or other operations.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            zabetak Stamatis Zampetakis
            zabetak Stamatis Zampetakis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 50m
                50m

                Slack

                  Issue deployment