Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
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.