Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,8 @@ required_capability: date_nanos_date_extract
FROM date_nanos
| EVAL nn = MV_MAX(nanos)
| EVAL year = DATE_EXTRACT("year", nn), ns = DATE_EXTRACT("nano_of_second", nn)
| KEEP nn, year, ns;
| KEEP nn, year, ns
| SORT nn DESC;

nn:date_nanos | year:long | ns:long
2023-10-23T13:55:01.543123456Z | 2023 | 543123456
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ public String getWriteableName() {
@Override
public ExpressionEvaluator.Factory toEvaluator(ToEvaluator toEvaluator) {
boolean isNanos = switch (field().dataType()) {
case DataType.DATETIME -> false;
case DataType.DATE_NANOS -> true;
case DATETIME -> false;
case DATE_NANOS -> true;
default -> throw new UnsupportedOperationException(
"Unsupported field type ["
+ field().dataType().name()
Expand Down