sfguide-data-engineering-with-snowpark-python
sfguide-data-engineering-with-snowpark-python copied to clipboard
Use session as context manager in examples
To align with best practices and to assure that session are really closed in case of errors examples should use snowpakr sesson in the following way:
with Session.builder.getOrCreate() as session:
print(main(session, *sys.argv[1:])) # type: ignore