Python Snowpark Print ()/. Show () funktioniert nichtPython

Python-Programme
Anonymous
 Python Snowpark Print ()/. Show () funktioniert nicht

Post by Anonymous »

Ich habe versucht, Snowpark -Programm in Snowsight zu erstellen.import snowflake.snowpark as snowpark
from snowflake.snowpark.functions import col

def main(session: snowpark.Session):
# Your code goes here, inside the "main" handler.
tableName = 'information_schema.packages'
dataframe = session.table(tableName).filter(col("language") == 'python')

# Print a sample of the dataframe to standard output.
dataframe.show()

# Return value will appear in the Results tab.
return dataframe
< /code>
Ich habe die korrekte Datenbank und das Schema, die Rolle und WH ebenfalls festgelegt, aber der Fehler tritt unabhängig von dem auf, was ich versucht habe, zu .Show () /print (). Verwenden Sie Befehle wie .show () oder print (), um Protokollausgabe zu schreiben.>

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post