Joe McDonnell created IMPALA-12692:
--------------------------------------

             Summary: Typo in docs about random() function
                 Key: IMPALA-12692
                 URL: https://issues.apache.org/jira/browse/IMPALA-12692
             Project: IMPALA
          Issue Type: Bug
          Components: Docs
    Affects Versions: Impala 4.4.0
            Reporter: Joe McDonnell


The docs for rand()/random() has a typo that refers to "randome":
{noformat}
          RAND(), RAND(BIGINT seed), RANDOME(), RANDOME(BIGINT seed){noformat}
[https://github.com/apache/impala/blob/master/docs/topics/impala_math_functions.xml#L1466]

It should be random().
{noformat}
[localhost:21050] functional> select randome();
Query: select randome()
Query submitted at: 2024-01-08 22:50:44 (Coordinator: 
http://joemcdonnell-22743:25000)
ERROR: AnalysisException: functional.randome() unknown for database functional. 
Currently this db has 0 functions.

[localhost:21050] functional> select random();
Query: select random()
Query submitted at: 2024-01-08 22:51:21 (Coordinator: 
http://joemcdonnell-22743:25000)
Query progress can be monitored at: 
http://joemcdonnell-22743:25000/query_plan?query_id=7e467178f9a8af8e:771d01ee00000000
+--------------+
| random()     |
+--------------+
| 0.4784972579 |
+--------------+
Fetched 1 row(s) in 0.11s
{noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to