Closed jakobbraun closed 4 years ago
(moved from https://github.com/exasol/virtual-schemas/issues/133)
Result of discussion with JDBC driver developers:
DECIMAL_DIGITS
COLUMN_SIZE
since "For character data, this is the length in characters." and the Interval is a character column. "$ODBCJDBC".ALL_COLUMNS
hat contains the COLUMN_TYPE
column, which also includes the type definition as string like INTERVAL DAY(2) TO SECOND(7)
. We could parse this directly.getColumns()
in the JDBC driver to access this information. Compared to the previously described solution this would only bring a small performance gain (since it does use a faster internal API) and lots of effort for implementation.Alternatively we could propably also use SYS.EXA_ALL_COLUMNS
, which also includes COLUMN_TYPE
Situation
Currently the precision of
INTERVAL
data types is hard-coded in the Exasol SQL dialect. The necessary information is not available via JDBC.Acceptance Criteria