generated from amazon-archives/__template_Custom
-
Notifications
You must be signed in to change notification settings - Fork 179
Closed as not planned
Closed as not planned
Copy link
Labels
calcitecalcite migration releatedcalcite migration releated
Description
Overview
Current, we use function properties as the parameter to fix current timestamp in now like functions (now(), current_time(), current_timestamp()). This allow us to show the same current time in one query execution. For example, we call source=XX | eval a=utc_time() | fields a, it will show
{
"schema": [
{
"name": "a",
"type": "time"
}
],
"datarows": [
[
"07:35:29.811442"
],
[
"07:35:29.811442"
],
....
}
The times are same even in microsecond level.
But other engine like calcite, spark has different performance. The result depends on the time the exact line is executed. Besides, avoiding passing function properties could make the logical plan clear and allow us the initialize static function object, improving the performance. After removing the function properties in argument, the return could be something like
{
"schema": [
{
"name": "a",
"type": "time"
}
],
"datarows": [
[
"07:35:29.811442"
],
[
"07:35:29.835123"
],
[
"07:35:29.849123"
],
....
}
Metadata
Metadata
Assignees
Labels
calcitecalcite migration releatedcalcite migration releated