Commit 159b60e
authored
Return double with correct precision for
* Convert string inputs to timestamp when fed to unix_timestamp function
Signed-off-by: Yuanchun Shen <yuanchu@amazon.com>
* Support string as an input for unix_timestamp for PPL execution without Calcite
Signed-off-by: Yuanchun Shen <yuanchu@amazon.com>
* Revert "Support string as an input for unix_timestamp for PPL execution without Calcite"
This reverts commit c0f2e7b.
Signed-off-by: Yuanchun Shen <yuanchu@amazon.com>
* Revert "Convert string inputs to timestamp when fed to unix_timestamp function"
This reverts commit 6937c9b.
Signed-off-by: Yuanchun Shen <yuanchu@amazon.com>
* Prioritize the signature using timestamp for unix_timestamp function
Signed-off-by: Yuanchun Shen <yuanchu@amazon.com>
---------
Signed-off-by: Yuanchun Shen <yuanchu@amazon.com>UNIX_TIMESTAMP (opensearch-project#3679)1 parent 122ae79 commit 159b60e
4 files changed
Lines changed: 37 additions & 1 deletion
File tree
- core/src/main/java/org/opensearch/sql/expression
- datetime
- function
- integ-test/src/test/java/org/opensearch/sql
- calcite/remote
- ppl
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
981 | 981 | | |
982 | 982 | | |
983 | 983 | | |
984 | | - | |
985 | 984 | | |
| 985 | + | |
986 | 986 | | |
987 | 987 | | |
988 | 988 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
256 | 257 | | |
257 | 258 | | |
258 | 259 | | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
259 | 263 | | |
260 | 264 | | |
261 | 265 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
17 | 24 | | |
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
1354 | 1355 | | |
1355 | 1356 | | |
1356 | 1357 | | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
1357 | 1382 | | |
1358 | 1383 | | |
1359 | 1384 | | |
| |||
0 commit comments