Description
The INFORMATION_SCHEMA.COLUMNS table does not have all data from the <interval_qualifier> of an INTERVAL type descriptor.
In particular, it does not have enough information to implement DatabaseMetaData.getColumns()'s COLUMN_SIZE or DECIMAL_DIGITS columns for INTERVAL types.
1. It does not have the starting and ending units, so we can't distinguish between INTERVAL HOUR TO MINUTE and INTERVAL HOUR TO SECOND--which have different lengths (COLUMN_SIZE) because their string representations have different fields.
2. It does not have the fractional seconds precision.
Attachments
Issue Links
- blocks
-
DRILL-2420 [umbrella] Identify, fix DatabaseMetaData.getColumns() bugs
- Resolved
- Is contained by
-
DRILL-2522 Implement INFORMATION_SCHEMA.* enough for relevant tools [bug]
- Closed
- is depended upon by
-
DRILL-2531 getColumns() not right/implemented for INTERVAL types
- Resolved
-
DRILL-2763 [umbrella] Implement INFORMATION_SCHEMA.COLUMNS enough for relevant tools
- Resolved
- is related to
-
DRILL-2530 getColumns() doesn't return right COLUMN_SIZE for INTERVAL types
- Resolved
- is superceded by
-
DRILL-3216 Fix existing(+) INFORMATION_SCHEMA.COLUMNS columns
- Resolved
- relates to
-
DRILL-2436 [umbrella] Implement JDBC enough for relevant tools
- In Progress
-
DRILL-2465 Fix multiple DatabaseMetaData.getColumns() bugs (some)
- Closed