Skip to content

Commit

Permalink
Swap date_trunc() arguments (elastic#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpintea authored and inqueue committed Dec 6, 2023
1 parent d571bea commit 15177be
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions nyc_taxis/operations/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@
"path": "/_esql",
"request-timeout": 120,
"body": {
"query": "from nyc_taxis | where dropoff_datetime < \"2015-03-01T00:00:00\" AND dropoff_datetime >= \"2015-01-01T00:00:00\" | eval dropoffs_over_time=date_trunc(dropoff_datetime, 1 week) | stats c = count(dropoff_datetime) by dropoffs_over_time | sort dropoffs_over_time",
"query": "from nyc_taxis | where dropoff_datetime < \"2015-03-01T00:00:00\" AND dropoff_datetime >= \"2015-01-01T00:00:00\" | eval dropoffs_over_time=date_trunc(1 week, dropoff_datetime) | stats c = count(dropoff_datetime) by dropoffs_over_time | sort dropoffs_over_time",
"pragma" : {
"data_partitioning" : "shard"
}
Expand All @@ -1039,7 +1039,7 @@
"path": "/_esql",
"request-timeout": 120,
"body": {
"query": "from nyc_taxis | where dropoff_datetime < \"2015-03-01T00:00:00\" AND dropoff_datetime >= \"2015-01-01T00:00:00\" | eval dropoffs_over_time=date_trunc(dropoff_datetime, 1 week) | stats c = count(dropoff_datetime) by dropoffs_over_time | sort dropoffs_over_time",
"query": "from nyc_taxis | where dropoff_datetime < \"2015-03-01T00:00:00\" AND dropoff_datetime >= \"2015-01-01T00:00:00\" | eval dropoffs_over_time=date_trunc(1 week, dropoff_datetime) | stats c = count(dropoff_datetime) by dropoffs_over_time | sort dropoffs_over_time",
"pragma" : {
"data_partitioning" : "doc"
}
Expand All @@ -1052,7 +1052,7 @@
"path": "/_esql",
"request-timeout": 120,
"body": {
"query": "from nyc_taxis | where dropoff_datetime < \"2015-03-01T00:00:00\" AND dropoff_datetime >= \"2015-01-01T00:00:00\" | eval dropoffs_over_time=date_trunc(dropoff_datetime, 10 days) | stats c = count(dropoff_datetime) by dropoffs_over_time | sort dropoffs_over_time",
"query": "from nyc_taxis | where dropoff_datetime < \"2015-03-01T00:00:00\" AND dropoff_datetime >= \"2015-01-01T00:00:00\" | eval dropoffs_over_time=date_trunc(10 days, dropoff_datetime) | stats c = count(dropoff_datetime) by dropoffs_over_time | sort dropoffs_over_time",
"pragma" : {
"data_partitioning" : "shard"
}
Expand All @@ -1065,7 +1065,7 @@
"path": "/_esql",
"request-timeout": 120,
"body": {
"query": "from nyc_taxis | where dropoff_datetime < \"2015-03-01T00:00:00\" AND dropoff_datetime >= \"2015-01-01T00:00:00\" | eval dropoffs_over_time=date_trunc(dropoff_datetime, 10 days) | stats c = count(dropoff_datetime) by dropoffs_over_time | sort dropoffs_over_time",
"query": "from nyc_taxis | where dropoff_datetime < \"2015-03-01T00:00:00\" AND dropoff_datetime >= \"2015-01-01T00:00:00\" | eval dropoffs_over_time=date_trunc(10 days, dropoff_datetime) | stats c = count(dropoff_datetime) by dropoffs_over_time | sort dropoffs_over_time",
"pragma" : {
"data_partitioning" : "doc"
}
Expand Down Expand Up @@ -1123,7 +1123,7 @@
"path": "/_esql",
"request-timeout": 120,
"body": {
"query": "from nyc_taxis | where dropoff_datetime < \"2015-03-01T00:00:00\" AND dropoff_datetime >= \"2015-01-01T00:00:00\" | eval dropoffs_over_time=date_trunc(dropoff_datetime, 10 days) | stats min_total_amount = min(total_amount), max_total_amount = max(total_amount), avg_total_amount = avg(total_amount), avg_trip_distance = avg(trip_distance) by dropoffs_over_time | sort dropoffs_over_time",
"query": "from nyc_taxis | where dropoff_datetime < \"2015-03-01T00:00:00\" AND dropoff_datetime >= \"2015-01-01T00:00:00\" | eval dropoffs_over_time=date_trunc(10 days, dropoff_datetime) | stats min_total_amount = min(total_amount), max_total_amount = max(total_amount), avg_total_amount = avg(total_amount), avg_trip_distance = avg(trip_distance) by dropoffs_over_time | sort dropoffs_over_time",
"pragma" : {
"data_partitioning" : "shard"
}
Expand All @@ -1136,7 +1136,7 @@
"path": "/_esql",
"request-timeout": 120,
"body": {
"query": "from nyc_taxis | where dropoff_datetime < \"2015-03-01T00:00:00\" AND dropoff_datetime >= \"2015-01-01T00:00:00\" | eval dropoffs_over_time=date_trunc(dropoff_datetime, 10 days) | stats min_total_amount = min(total_amount), max_total_amount = max(total_amount), avg_total_amount = avg(total_amount), avg_trip_distance = avg(trip_distance) by dropoffs_over_time | sort dropoffs_over_time",
"query": "from nyc_taxis | where dropoff_datetime < \"2015-03-01T00:00:00\" AND dropoff_datetime >= \"2015-01-01T00:00:00\" | eval dropoffs_over_time=date_trunc(10 days, dropoff_datetime) | stats min_total_amount = min(total_amount), max_total_amount = max(total_amount), avg_total_amount = avg(total_amount), avg_trip_distance = avg(trip_distance) by dropoffs_over_time | sort dropoffs_over_time",
"pragma" : {
"data_partitioning" : "doc"
}
Expand Down

0 comments on commit 15177be

Please sign in to comment.