Skip to Content
高级Snowflake
book

高级Snowflake

by Muhammad Fasih Ullah
September 2025
Beginner to intermediate
210 pages
3h 1m
Chinese
O'Reilly Media, Inc.
Content preview from 高级Snowflake

第 5 章 Snowflake 开发人员生态系统和本地应用程序框架

本作品已使用人工智能进行翻译。欢迎您提供反馈和意见:translation-feedback@oreilly.com

Snowflake 以云数据仓库起家,但已稳步发展成为一个全面的数据云平台。 这种演变包括为寻求将平台功能提升到新水平的开发人员提供强大的支持。 Snowflake 开发人员生态系统正是为此提供支持。它包括各种工具、接口和框架,旨在帮助开发人员构建复杂的数据应用程序和服务。

Snowflake 开发人员生态系统的核心是认识到,当数据应用程序在其处理的数据附近运行时,它们的工作效果最佳。从存储环境中提取数据,然后在单独的应用服务器中进行处理的传统方法会带来延迟、安全风险和操作复杂性。Snowflake 开发人员生态系统旨在通过提供在 Snowflake 环境中直接运行应用程序代码的机制来消除这些问题。

本章将从多个角度探讨 Snowflake 开发人员生态系统和 Snowflake 本地应用程序框架--从了解更广泛的开发人员生态系统和应用程序开发的技术方面,到发布和消费这些应用程序的流程。您还将看到 Streamlit 集成如何通过以最小的编码工作量实现交互式数据应用程序来增强框架,我还将提供在 Snowflake 环境中部署 Streamlit 应用程序的实用指导。

开发人员生态系统的核心组件

Snowflake 开发人员生态系统由多个组件组成,这些组件的核心开发目的是简化使用 Snowflake 构建的不同方面。 无论是您正在构建的应用程序还是内部工具,它都能为您提供所需的工具集,让您的 Snowflake 游戏更上一层楼。

雪园

正如我在第 4 章中介绍的那样,Snowpark 是一个开发人员框架,它通过使用 Java、Scala 和 Python 等语言进行 DataFrame 式编程,使数据处理更贴近数据。通过 Snowpark,开发人员可以用自己喜欢的语言编写代码,同时在 Snowflake 的处理引擎中执行操作。

用户定义函数

正如我在第 4 章中介绍的那样,UDF 使用 SQL、JavaScript、Java、Python 和其他支持语言编写的自定义代码扩展了 Snowflake 的内置功能。UDF 可用于实现专门的业务逻辑、复杂计算或与外部服务集成。

存储过程

存储过程可帮助开发人员 包 并在 Snowflake 中执行过程代码,支持事务控制、错误处理和复杂的多步骤操作。

外部函数

外部函数提供了一种机制,可从 Snowflake 查询中安全地调用托管在 Snowflake 外部的函数,从而实现与外部服务和系统的集成。

本地应用程序框架

本地应用程序框架建立在这些基础组件之上,可实现完全在 Snowflake 环境中运行的成熟应用程序,包括用户界面、持久存储和生命周期管理。

开发人员工具

Snowflake 通过提供多个开发人员工具对其核心组件进行补充,使其产品更加全面。

Snowflake CLI

Snowflake CLI 是一款开源的 命令行工具,专为开发人员的工作流程和 SQL 操作而设计,可灵活支持各种 Snowflake 技术的现代开发实践。 它使开发人员能够跨多个工作负载创建、管理和监控在 Snowflake 上运行的应用程序,同时支持用户自定义函数、存储过程和 SQL 执行等功能。

图 5-1显示了官方的Snowflake CLI GitHub 存储库

图 5-1. Snowflake CLI 的官方 GitHub ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

用数据进行沟通

用数据进行沟通

Carl Allchin
可解释人工智能实践指南

可解释人工智能实践指南

Michael Munn, David Pitman

Publisher Resources

ISBN: 9798341671003