lidavidm commented on code in PR #38733:
URL: https://github.com/apache/arrow/pull/38733#discussion_r1395772430


##########
java/flight/flight-sql-jdbc-core/src/main/java/org/apache/arrow/driver/jdbc/converter/impl/FixedSizeListAvaticaParameterConverter.java:
##########
@@ -33,6 +37,33 @@ public 
FixedSizeListAvaticaParameterConverter(ArrowType.FixedSizeList type) {
 
   @Override
   public boolean bindParameter(FieldVector vector, TypedValue typedValue, int 
index) {
+    final List<?> values = (List<?>) typedValue.value;
+
+    if (vector instanceof FixedSizeListVector) {
+      FixedSizeListVector listVector = ((FixedSizeListVector) vector);
+      FieldVector childVector = listVector.getDataVector();
+      if (values.size() > listVector.getListSize()) {

Review Comment:
   Should it be `values.size() != listVector.getListSize()`?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to