Snowflake - SnowPro Associate Platform Study Guide

    3: Data Loading and Virtual Warehouses

    This chapter walks through the ingestion surface of Snowflake from raw files in cloud storage to queryable rows: stage types, the COPY INTO and INSERT loaders, file formats, virtual warehouse sizing and scaling, semi-structured access patterns over VARIANT, Directory Tables for unstructured files, pre-signed URLs, and the Snowflake Cortex LLM function family that turns staged documents into searchable text. The depth maps to the largest measured area on the SnowPro Associate: Platform exam at the foundational level.

    Learning Objectives

    By the end of this chapter, you will be able to:

    • Work with structured and semi-structured data, including the use of stages (named internal stages, named external stages, user stages, table stages), and query unstructured files through Directory Tables.
    • Load data using COPY INTO and INSERT, list stage contents with LIST, and generate pre-signed URLs with GET_PRESIGNED_URL.
    • Query structured tables and semi-structured columns (VARIANT) using GET_PATH(), PARSE_JSON(), and dot-and-colon path syntax, and call SNOWFLAKE.CORTEX LLM functions (PARSE_DOCUMENT, TRANSLATE, CLASSIFY_TEXT, COMPLETE).
    • Compare standard virtual warehouses and multi-cluster warehouses.
    • Identify warehouse sizing from X-Small through 6X-Large and the effect of size changes on compute capacity.
    • Distinguish warehouse scaling axes: scaling up/down (resizing) versus scaling in/out (adding or removing clusters in a multi-cluster warehouse).
    • Create tables and load data through Snowsight, INSERT statements, and the Snowsight data-load UI.
    • Use COPY INTO <table> with file format options for CSV, JSON, Parquet, ORC, AVRO, and XML.

    Executive Summary

    • Stages are the bridge between cloud storage and tables. Named internal stages, named external stages, user stages, and table stages each have a distinct scope, owner, and reference syntax that the exam tests through small differences in the prefix character (@stage_name, @~, @%table_name).
    • COPY INTO is the bulk loader for files staged in any of those four locations, and INSERT is the single-row or small-batch loader for SQL values. LIST inspects file contents on a stage without touching the table, and GET_PRESIGNED_URL hands a time-bound URL to an unstructured file.
    • VARIANT is the universal semi-structured column. Queries reach into it through three equivalent surfaces: PARSE_JSON for casting strings to VARIANT, GET_PATH for function-style extraction, and the colon and dot path operators for inline navigation.
    • Virtual warehouses are billed compute clusters. Sizing (X-Small to 6X-Large) controls single-query throughput at a doubling step; the multi-cluster axis controls concurrency by adding identical clusters.
    • Snowflake Cortex LLM functions live under the SNOWFLAKE.CORTEX namespace and operate on text or on stage-resident documents. PARSE_DOCUMENT extracts text from PDFs, TRANSLATE shifts languages, CLASSIFY_TEXT maps text to a candidate label set, and COMPLETE drives general-purpose generation.

    Assumptions

    • Snowsight is the active web UI and SnowSQL is the reference CLI. Examples use the SYSADMIN role for object creation and a dedicated load warehouse named LOAD_WH unless otherwise noted.
    • All stage paths use forward slashes regardless of cloud provider. External stages use the s3://, azure://, or gcs:// URL syntax depending on the cloud account.
    • Edition references map back to the editions defined in Chapter 1 (Standard, Enterprise, Business Critical, VPS). Edition-gated features are flagged inline.
    • Cortex function names match the SnowPro Associate: Platform study guide convention (PARSE_DOCUMENT, TRANSLATE, CLASSIFY_TEXT, COMPLETE) and are invoked through the SNOWFLAKE.CORTEX prefix.

    Sections in this chapter

    1. Free
    2. Free with account
    3. Free with account
    4. Free with account
    5. Free with account
    6. Free with account
    7. Free with account
    8. Free with account
    9. Free with account