FANNG1 commented on code in PR #7254:
URL: https://github.com/apache/gravitino/pull/7254#discussion_r2107988525
##########
spark-connector/spark-common/src/main/java/org/apache/gravitino/spark/connector/utils/HiveGravitinoOperationOperator.java:
##########
@@ -145,6 +145,9 @@ private InternalRow toSparkPartition(String partitionName,
StructType partitionS
private @NotNull String getHivePartitionName(
String[] names, InternalRow ident, StructType partitionSchema) {
StringBuilder partitionName = new StringBuilder();
+ if (names == null) {
Review Comment:
Could you use `Preconditions.checkArgument` instead?
--
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]