justinmclean opened a new issue, #8086:
URL: https://github.com/apache/gravitino/issues/8086
### What would you like to be improved?
In toGravitinoLiteral in
spark-connector/spark-common/src/main/java/org/apache/gravitino/spark/connector/utils/SparkPartitionUtils.java
Here's a unit test to show that:
```
@Test
void testToGravitinoLiteralWithNull() {
GenericInternalRow rowWithNull = new GenericInternalRow(new Object[]
{null});
Assertions.assertEquals(
Literals.NULL,
SparkPartitionUtils.toGravitinoLiteral(rowWithNull, 0,
DataTypes.IntegerType));
}
```
### How should we improve?
Convert nulls to Literals.NULL.
--
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]