wuchong commented on a change in pull request #15306:
URL: https://github.com/apache/flink/pull/15306#discussion_r602401742
##########
File path: docs/data/sql_functions.yml
##########
@@ -429,9 +429,11 @@ temporal:
description: Returns the current SQL date in the local time zone. It is
evaluated for each record in streaming mode. But in batch mode, it is evaluated
once as the query starts and uses the same result for every row.
- sql: CURRENT_TIMESTAMP
table: currentTimestamp()
- description: Returns the current SQL timestamp in the local time zone, the
return type is TIMESTAMP WITH LOCAL TIME ZONE. It is evaluated for each record
in streaming mode. But in batch mode, it is evaluated once as the query starts
and uses the same result for every row.
+ description: Returns the current SQL timestamp in the local time zone, the
return type is TIMESTAMP WITH LOCAL TIME ZONE. It is evaluated for each record
both in streaming mode. But in batch mode tarts and uses the same result for
every row.
- sql: NOW()
description: Returns the current SQL timestamp in the local time zone,
this is a synonym of CURRENT_TIMESTAMP.
+ - sql: CURRENT_ROW_TIMESTAMP()
+ description: Returns the current SQL timestamp in the local time zone, the
return type is TIMESTAMP WITH LOCAL TIME ZONE. It is evaluated for each record
whether the job is batch job or stream job.
Review comment:
```suggestion
description: Returns the current SQL timestamp in the local time zone,
the return type is TIMESTAMP WITH LOCAL TIME ZONE. It is evaluated for each
record no matter in batch or streaming mode.
```
##########
File path: docs/data/sql_functions.yml
##########
@@ -429,9 +429,11 @@ temporal:
description: Returns the current SQL date in the local time zone. It is
evaluated for each record in streaming mode. But in batch mode, it is evaluated
once as the query starts and uses the same result for every row.
- sql: CURRENT_TIMESTAMP
table: currentTimestamp()
- description: Returns the current SQL timestamp in the local time zone, the
return type is TIMESTAMP WITH LOCAL TIME ZONE. It is evaluated for each record
in streaming mode. But in batch mode, it is evaluated once as the query starts
and uses the same result for every row.
+ description: Returns the current SQL timestamp in the local time zone, the
return type is TIMESTAMP WITH LOCAL TIME ZONE. It is evaluated for each record
both in streaming mode. But in batch mode tarts and uses the same result for
every row.
Review comment:
revert?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]