Skip to content

Commit

Permalink
Fix schema build
Browse files Browse the repository at this point in the history
Signed-off-by: Nghia Truong <[email protected]>
  • Loading branch information
ttnghia committed Oct 30, 2024
1 parent 5a6d177 commit d61da82
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions java/src/main/java/ai/rapids/cudf/Schema.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ public class Schema {
private static final int UNKNOWN_PRECISION = -1;

/**
* Store precision for the top level column, only applicable if the column is a decimal type.
* <p/>
* This variable is not designed to be used by any libcudf's APIs since libcudf does not support
* precisions for fixed point numbers.
* Instead, it is used only to pass down the precision values from Spark's DecimalType to the
* JNI level, where some JNI functions require these values to perform their operations.
*/
* Store precision for the top level column, only applicable if the column is a decimal type.
* <p/>
* This variable is not designed to be used by any libcudf's APIs since libcudf does not support
* precisions for fixed point numbers.
* Instead, it is used only to pass down the precision values from Spark's DecimalType to the
* JNI level, where some JNI functions require these values to perform their operations.
*/
private final int topLevelPrecision;

private final List<String> childNames;
Expand Down Expand Up @@ -429,7 +429,7 @@ public Schema build() {
children.add(b.build());
}
}
return new Schema(topLevelType, names, children);
return new Schema(topLevelType, topLevelPrecision, names, children);
}
}
}

0 comments on commit d61da82

Please sign in to comment.