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
Typical real life Arrow datasets contain List type vectors of primitive type. Looks logically implement default JDBC parameter binders for such vector type or implement some kind on binder code extensibility of core framework via MetaINF/ServiceLocator
Current implementation just [throws UnsupportedOperationException|#L80]]
@OverridepublicColumnBindervisit(ArrowType.Listtype) {
thrownewUnsupportedOperationException("No column binder implemented for type " + type);
}
My current implementation patch ColumnBinderArrowTypeVisitor in classpath (to leverage Builder functionality instead of manual vector mapping in code) to return ListBinder
Igor Suhorukov / @igor-suhorukov:
Thank you @lidavidm your approach works for manual coding for each dataset, but org.apache.arrow.adapter.jdbc.JdbcParameterBinder.Builder is super useful to reduce efforts to implement mapping of new type for dataset. The same difference like develop program to process data or just allow end users to write SQL querey
David Li / @lidavidm:
We would definitely welcome a PR with List/MapBinder implementations! Otherwise, I don't think I'd have the time to get to this for a while.
Igor Suhorukov / @igor-suhorukov: @lidavidm got it. Thanks for your time. Lets try from ListBinder. I also asked my friend to assist with PRs he'll look at code on weekends
Typical real life Arrow datasets contain List type vectors of primitive type. Looks logically implement default JDBC parameter binders for such vector type or implement some kind on binder code extensibility of core framework via MetaINF/ServiceLocator
Current implementation just [throws UnsupportedOperationException|#L80]]
My current implementation patch ColumnBinderArrowTypeVisitor in classpath (to leverage Builder functionality instead of manual vector mapping in code) to return ListBinder
and following code works for me with H2 database and in java stored PostgreSQL function in PL/Java to bind List parameter to JDBC:
Reporter: Igor Suhorukov / @igor-suhorukov
Assignee: Igor Suhorukov / @igor-suhorukov
Related issues:
PRs and other links:
Note: This issue was originally created as ARROW-17430. Please see the migration documentation for further details.
The text was updated successfully, but these errors were encountered: