Returns a DateVal representation in the output variable. Returns null if the DateValue instance doesn't have a valid date.
| 166 | /// Returns a DateVal representation in the output variable. |
| 167 | /// Returns null if the DateValue instance doesn't have a valid date. |
| 168 | impala_udf::DateVal ToDateVal() const { |
| 169 | if (!IsValid()) return impala_udf::DateVal::null(); |
| 170 | return impala_udf::DateVal(days_since_epoch_); |
| 171 | } |
| 172 | |
| 173 | /// Returns the underlying storage. There is only one representation for any DateValue |
| 174 | /// (including the invalid DateValue) and the storage is directly comparable. |