Uploaded image for project: 'Apache Trafodion (Retired)'
  1. Apache Trafodion (Retired)
  2. TRAFODION-2399

Syntax error on a string with double charset qualifier on load from salted table

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-incubating
    • 2.1-incubating
    • sql-cmp
    • None
    • any

    Description

      This problem was reported by Eric Owhadi.

      Eric saw this error message when doing a load that had a salted table as a source and that was using a selection predicate in the source select:

      *** ERROR[3127] An invalid character was found in identifier _ISO88591_ISO88591.
      
      *** ERROR[15001] A syntax error occurred at or before: 
      CAST ( _ISO88591_ISO88591'' AS CHAR(1) CHARACTER SET ISO88591 COLLATE DEFAULT)
                ^ (11 characters from start of SQL statement)
      
      *** ERROR[2235] Compiler Internal Error: An unknown error, originated from file ../optimizer/EncodedKeyValue.cpp at line 223.
      

      Here is a simple test case to reproduce the issue:

      drop table summarized_items;
      CREATE TABLE summarized_items
      (has_item_list CHAR(1) NOT NULL,
      item_type CHAR(1) NOT NULL,
      PRIMARY KEY (has_item_list,
                item_type))
      SALT USING 2 PARTITIONS ON 
                (item_type)
      ;
      
      
      drop table summarized_items2;
      CREATE TABLE summarized_items2
      (	
      item_type CHAR(1) NOT NULL)
      ;
      
      cqd COMP_BOOL_226 'on';
      prepare s from
      LOAD TRANSFORM INTO summarized_items2 select item_type from summarized_items where has_item_list = 'F';
      

      Attachments

        Activity

          People

            hzeller Hans Zeller
            hzeller Hans Zeller
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: