You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Serge Rielau (Jira)" <ji...@apache.org> on 2023/03/01 20:31:00 UTC
[jira] [Created] (SPARK-42638) current_user() is blocked from VALUES, but current_timestamp() is not
Serge Rielau created SPARK-42638:
------------------------------------
Summary: current_user() is blocked from VALUES, but current_timestamp() is not
Key: SPARK-42638
URL: https://issues.apache.org/jira/browse/SPARK-42638
Project: Spark
Issue Type: Bug
Components: Spark Core
Affects Versions: 3.3.0
Reporter: Serge Rielau
VALUES(current_user());
returns:
cannot evaluate expression current_user() in inline table definition.; line 1 pos 8
The same with current_timestamp() works.
It appears current_user() is recognized as non-deterministic. But it is constant within the statement, just like current_timestanmp().
PS: It's not clear why we block non-deterministic functions to begin with....
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org