[ https://issues.apache.org/jira/browse/SPARK-51423?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Max Gekk updated SPARK-51423: ----------------------------- Description: Add new function current_time() which returns the current time at the start of query evaluation. h4. Syntax {code:sql} current_time([n]) {code} h4. Arguments n: An integer literal defining the precision of the time between 0 and 6. The default is 6. h4. Returns A TIME\(n\). The braces are optional. h4. Examples {code:sql} > SELECT current_time(); 15:49:11.914120 > SELECT current_time; 15:49:11.915564 > SELECT current_time(0); 15:49:11 {code} was: Add new function current_time() which returns the current time at the start of query evaluation. h4. Syntax {code:sql} current_time([n]) {code} h4. Arguments n: An integer literal defining the precision of the time between 0 and 6. The default is 6. h4. Returns A TIME(n). The braces are optional. h4. Examples {code:sql} > SELECT current_time(); 15:49:11.914120 > SELECT current_time; 15:49:11.915564 > SELECT current_time(0); 15:49:11 {code} > Add the current_time() function > ------------------------------- > > Key: SPARK-51423 > URL: https://issues.apache.org/jira/browse/SPARK-51423 > Project: Spark > Issue Type: Sub-task > Components: SQL > Affects Versions: 4.1.0 > Reporter: Max Gekk > Priority: Major > > Add new function current_time() which returns the current time at the start > of query evaluation. > h4. Syntax > {code:sql} > current_time([n]) > {code} > h4. Arguments > n: An integer literal defining the precision of the time between 0 and 6. The > default is 6. > h4. Returns > A TIME\(n\). > The braces are optional. > h4. Examples > {code:sql} > > SELECT current_time(); > 15:49:11.914120 > > SELECT current_time; > 15:49:11.915564 > > SELECT current_time(0); > 15:49:11 > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org