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
while (rs.next()) {
for (int i = 1; i <= columnCount; i++) {
jdbcToFieldVector(
rs,
i,
rs.getMetaData().getColumnType(i),
rowCount,
root.getVector(rsmd.getColumnName(i)),
config);
}
rowCount++;
}
And in jdbcToFieldVector has lots of switch-case, that is to see, for every single value from ResultSet we have to do lots of analyzing conditions.
I think we could optimize this using consumer/delegate like avro adapter.
Jdbc adapter read from
ResultSet
looks like:while (rs.next()) {
for (int i = 1; i <= columnCount; i++) {
jdbcToFieldVector(
rs,
i,
rs.getMetaData().getColumnType(i),
rowCount,
root.getVector(rsmd.getColumnName(i)),
config);
}
rowCount++;
}
And in
jdbcToFieldVector
has lots of switch-case, that is to see, for every single value from ResultSet we have to do lots of analyzing conditions.I think we could optimize this using consumer/delegate like avro adapter.
Reporter: Ji Liu / @tianchen92
Assignee: Ji Liu / @tianchen92
PRs and other links:
Note: This issue was originally created as ARROW-6083. Please see the migration documentation for further details.
The text was updated successfully, but these errors were encountered: