Files
impala/testdata/workloads/functional-query/queries/QueryTest/decimal_avro.test
Skye Wanderman-Milne edbbe6035e Decimal: read from Avro
Allows reading decimal columns with or without codegen. Includes tests
based on a data file posted on HIVE-5823.

Change-Id: Ie541c6b98bd24543691850cb45a434af60b5a5a6
(cherry picked from commit 6983dcefdf70cce14724e17d03bc061ffb8f671c)
Reviewed-on: http://gerrit.ent.cloudera.com:8080/2596
Reviewed-by: Skye Wanderman-Milne <skye@cloudera.com>
Tested-by: jenkins
2014-05-16 22:26:11 -07:00

41 lines
455 B
Plaintext

====
---- QUERY
select * from avro_decimal_tbl
---- RESULTS
'Tom',234.79
'Beck',77.34
'Snow',55.71
'Mary',4.33
'Cluck',5.96
'Tom',12.25
'Mary',33.33
'Tom',19.00
'Beck',3.15
'Beck',79.90
---- TYPES
STRING, DECIMAL
====
---- QUERY
select name from avro_decimal_tbl
---- RESULTS
'Tom'
'Beck'
'Snow'
'Mary'
'Cluck'
'Tom'
'Mary'
'Tom'
'Beck'
'Beck'
---- TYPES
STRING
====
---- QUERY
select count(*) from avro_decimal_tbl
---- RESULTS
10
---- TYPES
BIGINT
====