Skip to content

Exception thrown while handling exception in CompositeJdbcConsumer #858

@aiguofer

Description

@aiguofer

Describe the bug, including details regarding any error messages, version, and platform.

Some MinorTypes don't have a corresponding ArrowType, which cause the existing error handling logic to throw a new exception here:

          ArrowType arrowType = consumer.vector.getMinorType().getType();
          throw new JdbcConsumerException(
              "Exception while consuming JDBC value", e, fieldInfo, arrowType);

Here's an example of the stacktrace:

Caused by: java.lang.UnsupportedOperationException: Cannot get simple type for type DECIMAL
	at org.apache.arrow.vector.types.Types$MinorType.getType(Types.java:815)
	at org.apache.arrow.adapter.jdbc.consumer.CompositeJdbcConsumer.consume(CompositeJdbcConsumer.java:49)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions