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 
caller just invoke `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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to