mirror of
https://github.com/apache/impala.git
synced 2026-01-09 06:05:09 -05:00
IMPALA-4056: Fix toSql() of DistributeParam
This commit fixes two issues in toSql() of DistributeParam: 1. string literals were not quoted 2. range partition split rows were not printed. Besides, this commit fixes a small issue in run-hive-server.sh Change-Id: I984a63a24f02670347b0e1efceb864d265d1f931 Reviewed-on: http://gerrit.cloudera.org:8080/4195 Reviewed-by: Matthew Jacobs <mj@cloudera.com> Reviewed-by: Alex Behm <alex.behm@cloudera.com> Tested-by: Internal Jenkins
This commit is contained in:
committed by
Internal Jenkins
parent
ab9e54bc42
commit
052d3cc8dd
@@ -38,19 +38,6 @@ TBLPROPERTIES(
|
||||
Expected int32 literal for column 'id' got 'abc'
|
||||
====
|
||||
---- QUERY
|
||||
-- Test error handling for split rows with two many components
|
||||
create table simple_hash ( id int, name string, valf float, vali bigint)
|
||||
DISTRIBUTE BY RANGE(col_does_not_exist, id) SPLIT ROWS ((1, 'abc'))
|
||||
TBLPROPERTIES(
|
||||
'storage_handler' = 'com.cloudera.kudu.hive.KuduStorageHandler',
|
||||
'kudu.table_name' = 'simple_hash',
|
||||
'kudu.master_addresses' = '127.0.0.1',
|
||||
'kudu.key_columns' = 'id, name'
|
||||
)
|
||||
---- CATCH
|
||||
Unknown column: col_does_not_exist
|
||||
====
|
||||
---- QUERY
|
||||
-- Test error handling for distribute clauses
|
||||
create table simple_hash ( id int, name string, valf float, vali bigint)
|
||||
DISTRIBUTE BY RANGE(col_does_not_exist) SPLIT ROWS ((1))
|
||||
|
||||
Reference in New Issue
Block a user