@@ -3498,86 +3498,121 @@ warningRegex:java.lang.IllegalArgumentException: milliSeconds \[-1457696696640\]
3498
3498
2023-10-23T13:53:55.832Z |2023-10-23T13:53:55.832987654Z|1698069235832987654|19
3499
3499
;
3500
3500
3501
- ImplicitCastingMultiTypedDateTruncInlinestats_By-Ignore
3502
- required_capability: inline_stats
3503
- // https://github.com/elastic/elasticsearch/issues/133973
3504
- // optimized incorrectly due to missing references [$$emp_no$converted_to$long{f$}#
3501
+ InlineStatsCountUnionType
3502
+ required_capability: inline_stats_with_union_types_in_stub_relation
3503
+
3504
+ FROM employees, employees_incompatible
3505
+ | KEEP emp_no, hire_date
3506
+ | INLINE STATS c = count(emp_no::long)
3507
+ | SORT hire_date DESC
3508
+ | LIMIT 10
3509
+ ;
3510
+
3511
+ emp_no:unsupported | hire_date:date_nanos | c:long
3512
+ null | 1999-04-30T00:00:00.000Z | 200
3513
+ null | 1999-04-30T00:00:00.000Z | 200
3514
+ null | 1997-05-19T00:00:00.000Z | 200
3515
+ null | 1997-05-19T00:00:00.000Z | 200
3516
+ null | 1996-11-05T00:00:00.000Z | 200
3517
+ null | 1996-11-05T00:00:00.000Z | 200
3518
+ null | 1995-12-15T00:00:00.000Z | 200
3519
+ null | 1995-12-15T00:00:00.000Z | 200
3520
+ null | 1995-08-22T00:00:00.000Z | 200
3521
+ null | 1995-08-22T00:00:00.000Z | 200
3522
+ ;
3523
+
3524
+ ImplicitCastingMultiTypedDateTruncInlinestats_By
3525
+ required_capability: inline_stats_with_union_types_in_stub_relation
3505
3526
3506
3527
FROM employees, employees_incompatible
3507
3528
| KEEP emp_no, hire_date
3508
3529
| INLINE STATS c = count(emp_no::long) BY yr = DATE_TRUNC(1 year, hire_date)
3509
- | SORT yr DESC
3510
- | LIMIT 5
3530
+ | SORT yr DESC, hire_date DESC
3531
+ | LIMIT 10
3511
3532
;
3512
3533
3513
- c:long | yr:date_nanos
3514
- 2 | 1999-01-01T00:00:00.000Z
3515
- 2 | 1997-01-01T00:00:00.000Z
3516
- 2 | 1996-01-01T00:00:00.000Z
3517
- 10 | 1995-01-01T00:00:00.000Z
3518
- 8 | 1994-01-01T00:00:00.000Z
3534
+ emp_no:unsupported | hire_date:date_nanos |c:long | yr:date_nanos
3535
+ null |1999-04-30T00:00:00.000Z|2 |1999-01-01T00:00:00.000Z
3536
+ null |1999-04-30T00:00:00.000Z|2 |1999-01-01T00:00:00.000Z
3537
+ null |1997-05-19T00:00:00.000Z|2 |1997-01-01T00:00:00.000Z
3538
+ null |1997-05-19T00:00:00.000Z|2 |1997-01-01T00:00:00.000Z
3539
+ null |1996-11-05T00:00:00.000Z|2 |1996-01-01T00:00:00.000Z
3540
+ null |1996-11-05T00:00:00.000Z|2 |1996-01-01T00:00:00.000Z
3541
+ null |1995-12-15T00:00:00.000Z|10 |1995-01-01T00:00:00.000Z
3542
+ null |1995-12-15T00:00:00.000Z|10 |1995-01-01T00:00:00.000Z
3543
+ null |1995-08-22T00:00:00.000Z|10 |1995-01-01T00:00:00.000Z
3544
+ null |1995-08-22T00:00:00.000Z|10 |1995-01-01T00:00:00.000Z
3519
3545
;
3520
3546
3521
- ImplicitCastingMultiTypedDateTruncInlinestats_ByWithFilter-Ignore
3522
- required_capability: inline_stats
3523
- // https://github.com/elastic/elasticsearch/issues/133973
3524
- // optimized incorrectly due to missing references [$$emp_no$converted_to$long{f$}#
3547
+ ImplicitCastingMultiTypedDateTruncInlinestats_ByWithFilter
3548
+ required_capability: inline_stats_with_union_types_in_stub_relation
3525
3549
3526
3550
FROM employees, employees_incompatible
3527
3551
| KEEP emp_no, hire_date
3528
3552
| INLINE STATS c = count(emp_no::long) where hire_date > "1996-01-01" BY yr = DATE_TRUNC(1 year, hire_date)
3529
- | SORT yr DESC
3530
- | LIMIT 5
3553
+ | SORT yr DESC, hire_date DESC
3554
+ | LIMIT 10
3531
3555
;
3532
3556
3533
- c:long | yr:date_nanos
3534
- 2 | 1999-01-01T00:00:00.000Z
3535
- 2 | 1997-01-01T00:00:00.000Z
3536
- 2 | 1996-01-01T00:00:00.000Z
3537
- 0 | 1995-01-01T00:00:00.000Z
3538
- 0 | 1994-01-01T00:00:00.000Z
3557
+ emp_no:unsupported | hire_date:date_nanos |c:long | yr:date_nanos
3558
+ null |1999-04-30T00:00:00.000Z|2 |1999-01-01T00:00:00.000Z
3559
+ null |1999-04-30T00:00:00.000Z|2 |1999-01-01T00:00:00.000Z
3560
+ null |1997-05-19T00:00:00.000Z|2 |1997-01-01T00:00:00.000Z
3561
+ null |1997-05-19T00:00:00.000Z|2 |1997-01-01T00:00:00.000Z
3562
+ null |1996-11-05T00:00:00.000Z|2 |1996-01-01T00:00:00.000Z
3563
+ null |1996-11-05T00:00:00.000Z|2 |1996-01-01T00:00:00.000Z
3564
+ null |1995-12-15T00:00:00.000Z|0 |1995-01-01T00:00:00.000Z
3565
+ null |1995-12-15T00:00:00.000Z|0 |1995-01-01T00:00:00.000Z
3566
+ null |1995-08-22T00:00:00.000Z|0 |1995-01-01T00:00:00.000Z
3567
+ null |1995-08-22T00:00:00.000Z|0 |1995-01-01T00:00:00.000Z
3539
3568
;
3540
3569
3541
- ImplicitCastingMultiTypedDateTruncInlinestats_ByWithEval-Ignore
3542
- required_capability: inline_stats
3543
- // https://github.com/elastic/elasticsearch/issues/133973
3544
- // optimized incorrectly due to missing references [$$emp_no$converted_to$long{f$}#
3570
+ ImplicitCastingMultiTypedDateTruncInlinestats_ByWithEval
3571
+ required_capability: inline_stats_with_union_types_in_stub_relation
3545
3572
3546
3573
FROM employees, employees_incompatible
3547
3574
| KEEP emp_no, hire_date
3548
3575
| EVAL yr = DATE_TRUNC(1 year, hire_date)
3549
3576
| INLINE STATS c = count(emp_no::long) BY yr
3550
- | SORT yr DESC
3551
- | LIMIT 5
3577
+ | SORT yr DESC, hire_date DESC
3578
+ | LIMIT 10
3552
3579
;
3553
3580
3554
- c:long | yr:date_nanos
3555
- 2 | 1999-01-01T00:00:00.000Z
3556
- 2 | 1997-01-01T00:00:00.000Z
3557
- 2 | 1996-01-01T00:00:00.000Z
3558
- 10 | 1995-01-01T00:00:00.000Z
3559
- 8 | 1994-01-01T00:00:00.000Z
3581
+ emp_no:unsupported | hire_date:date_nanos |c:long | yr:date_nanos
3582
+ null |1999-04-30T00:00:00.000Z|2 |1999-01-01T00:00:00.000Z
3583
+ null |1999-04-30T00:00:00.000Z|2 |1999-01-01T00:00:00.000Z
3584
+ null |1997-05-19T00:00:00.000Z|2 |1997-01-01T00:00:00.000Z
3585
+ null |1997-05-19T00:00:00.000Z|2 |1997-01-01T00:00:00.000Z
3586
+ null |1996-11-05T00:00:00.000Z|2 |1996-01-01T00:00:00.000Z
3587
+ null |1996-11-05T00:00:00.000Z|2 |1996-01-01T00:00:00.000Z
3588
+ null |1995-12-15T00:00:00.000Z|10 |1995-01-01T00:00:00.000Z
3589
+ null |1995-12-15T00:00:00.000Z|10 |1995-01-01T00:00:00.000Z
3590
+ null |1995-08-22T00:00:00.000Z|10 |1995-01-01T00:00:00.000Z
3591
+ null |1995-08-22T00:00:00.000Z|10 |1995-01-01T00:00:00.000Z
3560
3592
;
3561
3593
3562
- ImplicitCastingMultiTypedDateTruncInlinestats_ByWithEvalWithFilter-Ignore
3563
- required_capability: inline_stats
3564
- // https://github.com/elastic/elasticsearch/issues/133973
3565
- // optimized incorrectly due to missing references [$$emp_no$converted_to$long{f$}#
3594
+ ImplicitCastingMultiTypedDateTruncInlinestats_ByWithEvalWithFilter
3595
+ required_capability: inline_stats_with_union_types_in_stub_relation
3566
3596
3567
3597
FROM employees, employees_incompatible
3568
3598
| KEEP emp_no, hire_date
3569
3599
| EVAL yr = DATE_TRUNC(1 year, hire_date)
3570
3600
| INLINE STATS c = count(emp_no::long) where hire_date > "1991-01-01" BY yr
3571
- | SORT yr DESC
3572
- | LIMIT 5
3601
+ | SORT yr DESC, hire_date DESC
3602
+ | LIMIT 10
3573
3603
;
3574
3604
3575
- c:long | yr:date_nanos
3576
- 2 | 1999-01-01T00:00:00.000Z
3577
- 2 | 1997-01-01T00:00:00.000Z
3578
- 2 | 1996-01-01T00:00:00.000Z
3579
- 10 | 1995-01-01T00:00:00.000Z
3580
- 8 | 1994-01-01T00:00:00.000Z
3605
+ emp_no:unsupported | hire_date:date_nanos |c:long | yr:date_nanos
3606
+ null |1999-04-30T00:00:00.000Z|2 |1999-01-01T00:00:00.000Z
3607
+ null |1999-04-30T00:00:00.000Z|2 |1999-01-01T00:00:00.000Z
3608
+ null |1997-05-19T00:00:00.000Z|2 |1997-01-01T00:00:00.000Z
3609
+ null |1997-05-19T00:00:00.000Z|2 |1997-01-01T00:00:00.000Z
3610
+ null |1996-11-05T00:00:00.000Z|2 |1996-01-01T00:00:00.000Z
3611
+ null |1996-11-05T00:00:00.000Z|2 |1996-01-01T00:00:00.000Z
3612
+ null |1995-12-15T00:00:00.000Z|10 |1995-01-01T00:00:00.000Z
3613
+ null |1995-12-15T00:00:00.000Z|10 |1995-01-01T00:00:00.000Z
3614
+ null |1995-08-22T00:00:00.000Z|10 |1995-01-01T00:00:00.000Z
3615
+ null |1995-08-22T00:00:00.000Z|10 |1995-01-01T00:00:00.000Z
3581
3616
;
3582
3617
3583
3618
ImplicitCastingMultiTypedBucketDateNanosByYear
0 commit comments