mirror of
https://github.com/apache/impala.git
synced 2026-01-05 21:00:54 -05:00
Bugfix and tests for CHAR(N) and VARCHAR(N)
Fixed a bug when setting the length in reading/write text files for CHAR(N). Also added chars_tiny table for testing CHAR(N) and VARCHAR(N). Change-Id: If5d5db30afa4b00cf03c68c6a845f182970329f4 Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4415 Reviewed-by: Victor Bittorf <victor.bittorf@cloudera.com> Tested-by: jenkins
This commit is contained in:
@@ -1332,6 +1332,23 @@ select * from functional.{table_name};
|
||||
---- DATASET
|
||||
functional
|
||||
---- BASE_TABLE_NAME
|
||||
chars_tiny
|
||||
---- COLUMNS
|
||||
cs CHAR(5)
|
||||
cl CHAR(140)
|
||||
vc VARCHAR(32)
|
||||
---- ROW_FORMAT
|
||||
delimited fields terminated by ','
|
||||
---- LOAD
|
||||
`hadoop fs -mkdir -p /test-warehouse/chars_tiny && hadoop fs -put -f \
|
||||
${IMPALA_HOME}/testdata/data/chars-tiny.txt /test-warehouse/chars_tiny/
|
||||
---- DEPENDENT_LOAD
|
||||
INSERT OVERWRITE TABLE {db_name}{db_suffix}.{table_name}
|
||||
select * from functional.{table_name};
|
||||
====
|
||||
---- DATASET
|
||||
functional
|
||||
---- BASE_TABLE_NAME
|
||||
widetable_250_cols
|
||||
---- COLUMNS
|
||||
`${IMPALA_HOME}/testdata/common/widetable.py --get_columns -n 250
|
||||
|
||||
Reference in New Issue
Block a user