cloud-fan commented on code in PR #45945:
URL: https://github.com/apache/spark/pull/45945#discussion_r1557634726
##########
common/variant/src/main/java/org/apache/spark/types/variant/Variant.java:
##########
@@ -89,6 +97,37 @@ public BigDecimal getDecimal() {
return VariantUtil.getDecimal(value, pos);
}
+ // Get a raw date value (number of days from the Unix epoch) from the
variant.
+ public int getRawDate() {
Review Comment:
Similarly, `UnsafeRow` in Spark doesn't have these methods either. The call
just call `getInt/getLong` and interpret the result as number of days/seconds
from Unix epoch.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]