Skip to content

Commit d7675b6

Browse files
committed
Change MinorType -> Field
1 parent 9bb4214 commit d7675b6

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

adapter/jdbc/src/main/java/org/apache/arrow/adapter/jdbc/consumer/CompositeJdbcConsumer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public void consume(ResultSet rs) throws SQLException, IOException {
4747
new JdbcFieldInfo(rs.getMetaData(), consumer.columnIndexInResultSet);
4848

4949
throw new JdbcConsumerException(
50-
"Exception while consuming JDBC value", e, fieldInfo, consumer.vector.getMinorType());
50+
"Exception while consuming JDBC value", e, fieldInfo, consumer.vector.getField());
5151
} else {
5252
throw e;
5353
}

adapter/jdbc/src/main/java/org/apache/arrow/adapter/jdbc/consumer/exceptions/JdbcConsumerException.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,33 +17,33 @@
1717
package org.apache.arrow.adapter.jdbc.consumer.exceptions;
1818

1919
import org.apache.arrow.adapter.jdbc.JdbcFieldInfo;
20-
import org.apache.arrow.vector.types.Types;
20+
import org.apache.arrow.vector.types.pojo.Field;
2121

2222
/**
2323
* Exception while consuming JDBC data. This exception stores the JdbcFieldInfo for the column and
2424
* the ArrowType for the corresponding vector for easier debugging.
2525
*/
2626
public class JdbcConsumerException extends RuntimeException {
2727
final JdbcFieldInfo fieldInfo;
28-
final Types.MinorType minorType;
28+
final Field field;
2929

3030
/**
3131
* Construct JdbcConsumerException with all fields.
3232
*
3333
* @param message error message
3434
* @param cause original exception
3535
* @param fieldInfo JdbcFieldInfo for the column
36-
* @param minorType ArrowType for the corresponding vector
36+
* @param field ArrowType for the corresponding vector
3737
*/
3838
public JdbcConsumerException(
39-
String message, Throwable cause, JdbcFieldInfo fieldInfo, Types.MinorType minorType) {
39+
String message, Throwable cause, JdbcFieldInfo fieldInfo, Field field) {
4040
super(message, cause);
4141
this.fieldInfo = fieldInfo;
42-
this.minorType = minorType;
42+
this.field = field;
4343
}
4444

45-
public Types.MinorType getMinorType() {
46-
return this.minorType;
45+
public Field getField() {
46+
return this.field;
4747
}
4848

4949
public JdbcFieldInfo getFieldInfo() {

0 commit comments

Comments
 (0)