mirror of
https://github.com/apache/impala.git
synced 2025-12-19 18:12:08 -05:00
IMPALA-7368: Change supported year range for DATE values to 1..9999
Before this patch the supported year range for DATE type started with year 0. This contradicts the ANSI SQL standard that defines the valid DATE value range to be 0001-01-01 to 9999-12-31. Change-Id: Iefdf1c036834763f52d44d0c39a25a1f04e41e07 Reviewed-on: http://gerrit.cloudera.org:8080/14349 Reviewed-by: Attila Jeges <attilaj@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
This commit is contained in:
committed by
Impala Public Jenkins
parent
c4874d9a94
commit
684a54a89e
@@ -410,7 +410,7 @@ error_codes = (
|
||||
|
||||
("PARQUET_DATE_OUT_OF_RANGE", 134,
|
||||
"Parquet file '$0' column '$1' contains an out of range date. "
|
||||
"The valid date range is 0000-01-01..9999-12-31."),
|
||||
"The valid date range is 0001-01-01..9999-12-31."),
|
||||
|
||||
("DISCONNECTED_SESSION_CLOSED", 135,
|
||||
"Session closed because it has no active connections"),
|
||||
@@ -437,7 +437,7 @@ error_codes = (
|
||||
"maximum statement length ($1 bytes)"),
|
||||
|
||||
("AVRO_INVALID_DATE", 144, "Avro file '$0' is corrupt: out of range date value $1 "
|
||||
"at offset $2. The valid date range is -719528..2932896 (0000-01-01..9999-12-31)."),
|
||||
"at offset $2. The valid date range is -719162..2932896 (0001-01-01..9999-12-31)."),
|
||||
)
|
||||
|
||||
import sys
|
||||
|
||||
Reference in New Issue
Block a user