IMPALA-12503: Support date data type for predicates

for external data source table

This patch adds support for datatype date as predicates
for external data sources.

Testing:
- Added tests for date predicates with operators:
  '=', '>', '<', '>=', '<=', '!=', 'BETWEEN'.

Change-Id: Ibf13cbefaad812a0f78755c5791d82b24a3395e4
Reviewed-on: http://gerrit.cloudera.org:8080/20915
Reviewed-by: Wenzhe Zhou <wzhou@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
This commit is contained in:
gaurav1086
2024-01-10 11:15:21 -08:00
committed by Impala Public Jenkins
parent 27955a385e
commit f7a43b18aa
13 changed files with 556 additions and 60 deletions

View File

@@ -62,7 +62,7 @@ CREATE TABLE alltypes_jdbc_datasource (
bigint_col BIGINT,
float_col FLOAT,
double_col DOUBLE,
date_string_col STRING,
date_col DATE,
string_col STRING,
timestamp_col TIMESTAMP)
PRODUCED BY DATA SOURCE JdbcDataSource(
@@ -84,7 +84,7 @@ CREATE TABLE alltypes_jdbc_datasource_2 (
bigint_col BIGINT,
float_col FLOAT,
double_col DOUBLE,
date_string_col STRING,
date_col DATE,
string_col STRING,
timestamp_col TIMESTAMP)
PRODUCED BY DATA SOURCE JdbcDataSource(