IMPALA-1319: Fixed CHAR padding for numeric casts

IMPALA-1322: Crash on VARCHAR/CHAR join

Fixed 2 issues:
  (1) Disabled codegen for CHAR in hash join equality
  (2) fixed memory layout for CHAR
  (3) Fixed a regression where space padding could be dropped for numeric casts.

Change-Id: I6475fd527ca0d67c7d4d5ec7e561549e43fbc336
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4640
Reviewed-by: Victor Bittorf <victor.bittorf@cloudera.com>
Tested-by: jenkins
This commit is contained in:
Victor Bittorf
2014-09-30 10:53:46 -07:00
committed by Nong Li
parent 21f665a312
commit fa502f973a
6 changed files with 73 additions and 26 deletions

View File

@@ -229,3 +229,12 @@ string
'6c'
'c'
====
---- QUERY
# Regression test for IMPALA-1322
select count(*) from functional.chars_tiny as A, functional.chars_tiny as B
where cast(A.cs as CHAR(1)) = cast(B.vc as CHAR(1));
---- TYPES
bigint
---- RESULTS
9
====