IMPALA-1025: Use converse of data source predicate operators if expr has val before slot

Change-Id: I31790c037e2fa9af7b80c01014f7507ba5053e63
Reviewed-on: http://gerrit.ent.cloudera.com:8080/2925
Reviewed-by: Matthew Jacobs <mj@cloudera.com>
Tested-by: jenkins
This commit is contained in:
Matthew Jacobs
2014-06-04 14:34:22 -07:00
committed by jenkins
parent b3ebfddadd
commit f5da019555
6 changed files with 154 additions and 40 deletions

View File

@@ -33,15 +33,10 @@ CREATE TABLE alltypes_datasource (
float_col FLOAT,
double_col DOUBLE,
timestamp_col TIMESTAMP,
string_col STRING)
string_col STRING,
dec_col1 DECIMAL(9,0),
dec_col2 DECIMAL(10,0),
dec_col3 DECIMAL(20,10),
dec_col4 DECIMAL(38,37),
dec_col5 DECIMAL(10,5))
PRODUCED BY DATASOURCE AllTypesDataSource("TestInitString");
-- TODO: Remove table and move decimal cols into alltypes_datasource
DROP TABLE IF EXISTS decimal_datasource;
CREATE TABLE decimal_datasource (
d1 DECIMAL(9,0),
d2 DECIMAL(10,0),
d3 DECIMAL(20,10),
d4 DECIMAL(38,37),
d5 DECIMAL(10,5))
PRODUCED BY DATASOURCE AllTypesDataSource;