-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HIVE-28076: Selecting data from a bucketed table with decimal column …
…type throwing NPE. (Dayakar M, reviewed by Krisztian Kasa) (cherry picked from commit 3e48a01)
- Loading branch information
Showing
3 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
ql/src/test/queries/clientpositive/bucket_decimal_col_select.q
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
set hive.tez.bucket.pruning=true; | ||
|
||
create table bucket_table(id decimal(38,0), name string) clustered by(id) into 3 buckets; | ||
insert into bucket_table values(5000000000000999640711, 'Cloud'); | ||
|
||
select * from bucket_table bt where id = 5000000000000999640711; |
27 changes: 27 additions & 0 deletions
27
ql/src/test/results/clientpositive/llap/bucket_decimal_col_select.q.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
PREHOOK: query: create table bucket_table(id decimal(38,0), name string) clustered by(id) into 3 buckets | ||
PREHOOK: type: CREATETABLE | ||
PREHOOK: Output: database:default | ||
PREHOOK: Output: default@bucket_table | ||
POSTHOOK: query: create table bucket_table(id decimal(38,0), name string) clustered by(id) into 3 buckets | ||
POSTHOOK: type: CREATETABLE | ||
POSTHOOK: Output: database:default | ||
POSTHOOK: Output: default@bucket_table | ||
PREHOOK: query: insert into bucket_table values(5000000000000999640711, 'Cloud') | ||
PREHOOK: type: QUERY | ||
PREHOOK: Input: _dummy_database@_dummy_table | ||
PREHOOK: Output: default@bucket_table | ||
POSTHOOK: query: insert into bucket_table values(5000000000000999640711, 'Cloud') | ||
POSTHOOK: type: QUERY | ||
POSTHOOK: Input: _dummy_database@_dummy_table | ||
POSTHOOK: Output: default@bucket_table | ||
POSTHOOK: Lineage: bucket_table.id SCRIPT [] | ||
POSTHOOK: Lineage: bucket_table.name SCRIPT [] | ||
PREHOOK: query: select * from bucket_table bt where id = 5000000000000999640711 | ||
PREHOOK: type: QUERY | ||
PREHOOK: Input: default@bucket_table | ||
#### A masked pattern was here #### | ||
POSTHOOK: query: select * from bucket_table bt where id = 5000000000000999640711 | ||
POSTHOOK: type: QUERY | ||
POSTHOOK: Input: default@bucket_table | ||
#### A masked pattern was here #### | ||
5000000000000999640711 Cloud |