You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Adds a custom option to the ADBC JDBC adapter to provide a custom type
mapper from JDBC column info to ArrowType
- Adds a customized JdbcFieldInfo that exposes more fields that are
necessary (e.g. PostgreSQL's JDBC driver exposes `TIMESTAMP WITHOUT TIME
ZONE` and `TIMESTAMP WITH TIME ZONE` as `Types.TIMESTAMP`, so you have
to look at the type name instead)
- Future work: #728
- Future work: apache/arrow#35916
- Future work: #727
- Add (failing) tests demonstrating that the values read are
inconsistent with the assumed types
Fixes#720.
### Rationale for this change
Existing info is not enough to make completely accurate conversion decisions.
### What changes are included in this PR?
Include the type name reported by the database and the max number of characters as part of the `JdbcFieldInfo`.
* Closes: #35916
Authored-by: Diego Fernandez <aiguo.fernandez@gmail.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
…pache#37123)
### Rationale for this change
Existing info is not enough to make completely accurate conversion decisions.
### What changes are included in this PR?
Include the type name reported by the database and the max number of characters as part of the `JdbcFieldInfo`.
* Closes: apache#35916
Authored-by: Diego Fernandez <aiguo.fernandez@gmail.com>
Signed-off-by: David Li <li.davidm96@gmail.com>
Describe the enhancement requested
The APIs only let us infer the type based on the data type, precision, and scale, effectively. But in the wild, there are always exceptions; for example, the JDBC driver for PostgreSQL maps both
TIMESTAMP WITHOUT TIME ZONE
andTIMESTAMP WITH TIME ZONE
to justTypes.TIMESTAMP
, so arrow-jdbc dutifully maps them both to naïve timestamps (wrong!).DatabaseMetaData#getColumns
.JdbcConsumer
s are constructed. (ArrowVectorIterator
hardcodes calls toJdbcToArrowUtils#getConsumer
.)Component(s)
Java
The text was updated successfully, but these errors were encountered: