[ 
https://issues.apache.org/jira/browse/SPARK-28324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16882288#comment-16882288
 ] 

Sean Owen commented on SPARK-28324:
-----------------------------------

I don't think we should change this as it will break code and there isn't a 
'standard' here AFAICT. As you say, Hive treats this as log base e, as does 
Java, Scala, etc. You can add log10() etc. 

> The LOG function using 10 as the base, but Spark using E
> --------------------------------------------------------
>
>                 Key: SPARK-28324
>                 URL: https://issues.apache.org/jira/browse/SPARK-28324
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Yuming Wang
>            Priority: Major
>
> Spark SQL:
> {code:sql}
> spark-sql> select log(10);
> 2.302585092994046
> {code}
> PostgreSQL:
> {code:sql}
> postgres=# select log(10);
>  log
> -----
>    1
> (1 row)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to