Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-42638

current_user() is blocked from VALUES, but current_timestamp() is not

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.3.0
    • None
    • Spark Core
    • None

    Description

      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....

      Attachments

        Activity

          People

            Unassigned Unassigned
            srielau Serge Rielau
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: