mirror of
https://github.com/apache/impala.git
synced 2026-01-01 18:00:30 -05:00
Adds fixes and tests for Hive CHAR & VARCHAR compatibility. Also fixes a bug in tuple materialization for VARCHAR and non in-lined CHAR. Change-Id: I400b089cb8ddba2e264ef9f2e37956b2ceaaf9fb Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4054 Reviewed-by: Victor Bittorf <victor.bittorf@cloudera.com> Tested-by: jenkins
38 lines
1.4 KiB
Plaintext
38 lines
1.4 KiB
Plaintext
====
|
|
---- QUERY
|
|
select * from chars_formats order by vc;
|
|
---- TYPES
|
|
char, char, string
|
|
---- RESULTS
|
|
'abc ','8d3fffddf79e9a232ffd19f9ccaa4d6b37a6a243dbe0f23137b108a043d9da13121a9b505c804956b22e93c7f93969f4a7ba8ddea45bf4aab0bebc8f814e09918d3fffddf79e','abc'
|
|
'abcde','68f8c4575da360c32abb46689e58193a0eeaa905ae6f4a5e6c702a6ae1db35a6f86f8222b7a5489d96eb0466c755b677a64160d074617096a8c6279038bc720468f8c4575da3','b2fe9d4638503a57f93396098f24103a'
|
|
'abcde','88db79c70974e02deb3f01cfdcc5daae2078f21517d1021994f12685c0144addae3ce0dbd6a540b55b88af68486251fa6f0c8f9f94b3b1b4bc64c69714e281f388db79c70974','variable length'
|
|
====
|
|
---- QUERY
|
|
select cs from chars_formats order by vc;
|
|
---- TYPES
|
|
char
|
|
---- RESULTS
|
|
'abc '
|
|
'abcde'
|
|
'abcde'
|
|
====
|
|
---- QUERY
|
|
select cl from chars_formats order by vc;
|
|
---- TYPES
|
|
char
|
|
---- RESULTS
|
|
'8d3fffddf79e9a232ffd19f9ccaa4d6b37a6a243dbe0f23137b108a043d9da13121a9b505c804956b22e93c7f93969f4a7ba8ddea45bf4aab0bebc8f814e09918d3fffddf79e'
|
|
'68f8c4575da360c32abb46689e58193a0eeaa905ae6f4a5e6c702a6ae1db35a6f86f8222b7a5489d96eb0466c755b677a64160d074617096a8c6279038bc720468f8c4575da3'
|
|
'88db79c70974e02deb3f01cfdcc5daae2078f21517d1021994f12685c0144addae3ce0dbd6a540b55b88af68486251fa6f0c8f9f94b3b1b4bc64c69714e281f388db79c70974'
|
|
====
|
|
---- QUERY
|
|
select vc from chars_formats order by vc;
|
|
---- TYPES
|
|
string
|
|
---- RESULTS
|
|
'abc'
|
|
'b2fe9d4638503a57f93396098f24103a'
|
|
'variable length'
|
|
====
|