Commit 1c8b5df
committed
Add VARCHAR-literal regression test and trim helper comments
Cover the case where RexSimplify strips a literal's EXPR_TIMESTAMP UDT
during Sarg folding and the field is the only timestamp anchor left.
Without the fix, the raw "yyyy-MM-dd HH:mm:ss" string would ship without
format("date_time"), and the shard's default parser would reject it.
Trim the two helper-method JavaDocs to single-line `//` comments now that
the test pins the behavior.
Signed-off-by: Jialiang Liang <jiallian@amazon.com>1 parent 9aa7976 commit 1c8b5df
2 files changed
Lines changed: 35 additions & 21 deletions
File tree
- opensearch/src
- main/java/org/opensearch/sql/opensearch/request
- test/java/org/opensearch/sql/opensearch/request
Lines changed: 3 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1447 | 1447 | | |
1448 | 1448 | | |
1449 | 1449 | | |
1450 | | - | |
1451 | | - | |
1452 | | - | |
1453 | | - | |
1454 | | - | |
1455 | | - | |
1456 | | - | |
1457 | | - | |
1458 | | - | |
| 1450 | + | |
| 1451 | + | |
1459 | 1452 | | |
1460 | 1453 | | |
1461 | 1454 | | |
1462 | 1455 | | |
1463 | | - | |
1464 | | - | |
1465 | | - | |
1466 | | - | |
1467 | | - | |
1468 | | - | |
1469 | 1456 | | |
1470 | | - | |
1471 | | - | |
1472 | | - | |
1473 | | - | |
1474 | | - | |
| 1457 | + | |
1475 | 1458 | | |
1476 | 1459 | | |
1477 | | - | |
1478 | 1460 | | |
1479 | 1461 | | |
1480 | 1462 | | |
| |||
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1147 | 1147 | | |
1148 | 1148 | | |
1149 | 1149 | | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
1150 | 1182 | | |
1151 | 1183 | | |
1152 | 1184 | | |
| |||
0 commit comments