ygerzhedovich commented on code in PR #2912:
URL: https://github.com/apache/ignite-3/pull/2912#discussion_r1417650907


##########
modules/client-common/src/main/java/org/apache/ignite/internal/jdbc/JdbcConverterUtils.java:
##########
@@ -44,4 +46,79 @@ public static Class<?> columnTypeToJdbcClass(ColumnType 
type) {
                 return type.javaClass();
         }
     }
+
+    /**
+     * Derives value from {@link BinaryTuple} by given column index, column 
type, and scale for decimal type.
+     *
+     * @param columnType An expected type of the field.
+     * @param binaryTuple A tuple reader to derive value from.
+     * @param idx An index of a field of interest.
+     * @param decimalScale A scale for decimal field. If the field is of a 
different type, then the specific value does not matter.
+     * @return Derived value. The value can be {@code null}.
+     */
+    public static @Nullable Object deriveValueFromBinaryTuple(ColumnType 
columnType, BinaryTupleReader binaryTuple, int idx,
+            int decimalScale) {
+        switch (columnType) {
+            case INT8:
+                return binaryTuple.byteValue(idx);

Review Comment:
   my mistake, thanks



-- 
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