[ https://issues.apache.org/jira/browse/SPARK-51421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17941721#comment-17941721 ]
Max Gekk commented on SPARK-51421: ---------------------------------- The function shall return seconds without fractions. It is equivalent to *int(extract(SECOND FROM expr))*. > Get seconds of time > ------------------- > > Key: SPARK-51421 > URL: https://issues.apache.org/jira/browse/SPARK-51421 > Project: Spark > Issue Type: Sub-task > Components: SQL > Affects Versions: 4.1.0 > Reporter: Max Gekk > Priority: Minor > Labels: pull-request-available > > Modify the second() function to returns the second component of the time expr. > h4. Syntax > {code:sql} > second(expr) > {code} > h4. Arguments > {code:sql} > expr: A TIME expression. > {code} > h4. Returns > An INTEGER. > h4. Examples > {code:sql} > > SELECT second(TIME'12:58:59'); > 59 > {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