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

Error 3078 can be raised when max hive string length is reduced from the default value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2-incubating
    • sql-cmp
    • None

    Description

      One example is for the following simple test from TEST002 (core).

      set schema hive.hive;

      cqd HIVE_MAX_STRING_LENGTH '20' ;

      cqd mode_seahive 'ON';

      select count from customer ; <== raise 3078

      The reason that the compiler emits 3078 is because the CQD sets the internal length of all string column of the native table to be 20. However, if the external table pre-exists for the native table and the column length is set without the CQD, the length is 32000. Since 20 != 32000, we raise 3078. If no such external table exists, then the check will not be performed and there is no error 3078.

      Attachments

        Activity

          People

            qfc Qifan Chen
            qfc Qifan Chen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: