mirror of
https://github.com/apache/impala.git
synced 2026-01-06 06:01:03 -05:00
Enforce slot equivalences at data source scan nodes
Change-Id: I2ed606ba398990ab05afa3301b6356c6a636e2bb Reviewed-on: http://gerrit.ent.cloudera.com:8080/2521 Reviewed-by: Matthew Jacobs <mj@cloudera.com> Tested-by: jenkins (cherry picked from commit 55061f6953956f45d433fe227ded539a648e3f9c) Reviewed-on: http://gerrit.ent.cloudera.com:8080/2536
This commit is contained in:
@@ -3,19 +3,18 @@
|
||||
# Gets all types including a row with a NULL value. The predicate pushed to
|
||||
# the data source is not actually used, but the second predicate is
|
||||
# evaluated by Impala.
|
||||
select smallint_col, tinyint_col, int_col, bigint_col,
|
||||
float_col, bool_col, double_col, string_col, timestamp_col
|
||||
select *
|
||||
from alltypes_datasource
|
||||
where float_col != 0 and
|
||||
int_col >= 1990 limit 5
|
||||
---- RESULTS
|
||||
90,0,1990,19900,2189,true,1990,'NULL',1970-01-01 00:00:01.990000000
|
||||
91,1,1991,19910,2190.10009765625,false,1991,'1991',1970-01-01 00:00:01.991000000
|
||||
92,2,1992,19920,2191.199951171875,true,1992,'1992',1970-01-01 00:00:01.992000000
|
||||
93,3,1993,19930,2192.300048828125,false,1993,'1993',1970-01-01 00:00:01.993000000
|
||||
94,4,1994,19940,2193.39990234375,true,1994,'1994',1970-01-01 00:00:01.994000000
|
||||
1990,true,0,90,1990,19900,2189,1990,1970-01-01 00:00:01.990000000,'NULL'
|
||||
1991,false,1,91,1991,19910,2190.10009765625,1991,1970-01-01 00:00:01.991000000,'1991'
|
||||
1992,true,2,92,1992,19920,2191.199951171875,1992,1970-01-01 00:00:01.992000000,'1992'
|
||||
1993,false,3,93,1993,19930,2192.300048828125,1993,1970-01-01 00:00:01.993000000,'1993'
|
||||
1994,true,4,94,1994,19940,2193.39990234375,1994,1970-01-01 00:00:01.994000000,'1994'
|
||||
---- TYPES
|
||||
SMALLINT, TINYINT, INT, BIGINT, FLOAT, BOOLEAN, DOUBLE, STRING, TIMESTAMP
|
||||
INT, BOOLEAN, TINYINT, SMALLINT, INT, BIGINT, FLOAT, DOUBLE, TIMESTAMP, STRING
|
||||
====
|
||||
---- QUERY
|
||||
# Project a subset of the columns
|
||||
|
||||
Reference in New Issue
Block a user