liveBook · Manning

Snowpark SQL API

As explained in Snowflake Data Engineering

The Snowpark SQL API is an interface for working with Snowpark SQL operations from a local development environment.

The Snowpark SQL API supports Snowpark Python development from a local environment, where source control, versioning, branching, and automated deployment can manage shared codebases more sustainably than worksheets. section 6.2 section 6.8

Use the API to:

  • Create and transform data frames with Snowpark methods that translate into SQL and execute in Snowflake. section 6.8
  • Connect from Python by supplying account credentials and optional role, warehouse, database, and schema settings. section 6.8
  • Protect credentials with a structured configuration file that Python converts into connection parameters. section 6.8
  • Read local CSV files, upload them to an internal stage, and load them into tables with COPY. section 6.8

Holiday-aware procedure

A Python stored procedure can use the holidays package to evaluate a date and country, return a Boolean result, and support date-dimension processing. Calls distinguish holidays in the United States and France. section 6.2

How Snowflake Data Engineering covers it

How deep it goes
Explains data-frame translation, session configuration, credential handling, file staging, and table loading without detailing API method signatures.
Examples
Demonstrates holiday detection, local CSV staging, data-frame writes, table joins, and view creation.
What it assumes
Assumes Python development ability and access to a Snowflake account, while explaining connection settings and credential configuration.
What you can do after
Build and deploy Snowpark Python pipelines locally while connecting securely and moving data between files, stages, and tables.
How it connects
Connects Snowpark Python with data frames, SQL, stored procedures, internal stages, COPY, source control, and Git.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Snowflake Data Engineering. The section links point to the parts of the book it draws on.