snowflake-upgrade-migration
Upgrade Snowflake drivers, handle breaking changes, and migrate between editions. Use when upgrading snowflake-sdk or snowflake-connector-python versions, migrating between Snowflake editions, or handling deprecations. Trigger with phrases like "upgrade snowflake", "snowflake migration", "snowflake breaking changes", "update snowflake driver", "snowflake version".
What this skill does
# Snowflake Upgrade & Migration
## Overview
Guide for upgrading Snowflake driver versions, handling Snowflake behavior change releases, and migrating between editions.
## Prerequisites
- Current driver version identified
- Test suite available
- Staging Snowflake account
- Git for version control
## Instructions
### Step 1: Check Current Versions
```bash
# Node.js driver
npm list snowflake-sdk
npm view snowflake-sdk version # Latest available
# Python connector
pip show snowflake-connector-python
pip index versions snowflake-connector-python 2>/dev/null | head -5
# Snowflake platform version (run in SQL)
# SELECT CURRENT_VERSION();
```
### Step 2: Review Snowflake Release Notes
```bash
# Check Node.js driver changelog
open https://github.com/snowflakedb/snowflake-connector-nodejs/blob/master/CHANGELOG.md
# Check Python connector changelog
open https://docs.snowflake.com/en/release-notes/clients-drivers/python-connector-2025
# Check Snowflake BCR (Behavior Change Releases)
open
```
### Step 3: Upgrade on a Branch
```bash
# Node.js
git checkout -b chore/upgrade-snowflake-sdk
npm install snowflake-sdk@latest
npm test
# Python
git checkout -b chore/upgrade-snowflake-connector
pip install --upgrade snowflake-connector-python
pytest
```
### Step 4: Handle Common Breaking Changes
**Node.js Driver Changes (1.x to 2.x+):**
```typescript
// Old: Synchronous configure
// snowflake.configure({ logLevel: 'DEBUG' });
// New: Same API but check for removed options
import snowflake from 'snowflake-sdk';
snowflake.configure({
logLevel: process.env.NODE_ENV === 'development' ? 'DEBUG' : 'WARN',
// insecureConnect removed in newer versions — use proper certs
});
// connectAsync added in later versions
const conn = snowflake.createConnection({ /* ... */ });
await conn.connectAsync(); // Promise-based (if available)
// Fallback for older versions:
await new Promise((resolve, reject) => {
conn.connect((err, c) => err ? reject(err) : resolve(c));
});
```
**Python Connector Changes:**
```python
# v3.x: fetch_pandas_all() requires pandas extra
# pip install "snowflake-connector-python[pandas]"
# v3.x: write_pandas() moved to snowflake.connector.pandas_tools
from snowflake.connector.pandas_tools import write_pandas
# v2.x to v3.x: DictCursor import changed
# Old: from snowflake.connector import DictCursor
# New:
cursor = conn.cursor(snowflake.connector.DictCursor)
# Arrow result format (default in newer versions)
conn = snowflake.connector.connect(
# ...
arrow_number_to_decimal=True, # New in 3.x
)
```
**Snowflake Platform BCR (Behavior Change Releases):**
```sql
-- Check which BCR bundles are enabled
SELECT SYSTEM$SHOW_ACTIVE_BEHAVIOR_CHANGE_BUNDLES();
-- Test a specific BCR before it's mandatory
ALTER ACCOUNT SET BCR_ENABLED = '2024_08';
-- Common BCRs to watch:
-- Stricter type checking in COPY INTO
-- Changed NULL handling in aggregations
-- Modified INFORMATION_SCHEMA view columns
```
### Step 5: Validate After Upgrade
```typescript
// src/tests/integration/upgrade-validation.test.ts
describe('Post-upgrade validation', () => {
it('should connect with existing credentials', async () => {
const conn = createConnection();
await connectAsync(conn);
expect(conn.getId()).toBeTruthy();
});
it('should execute parameterized queries', async () => {
const rows = await query(conn,
'SELECT ? AS test_value', [42]
);
expect(rows[0].TEST_VALUE).toBe(42);
});
it('should stream large results', async () => {
let count = 0;
for await (const row of streamQuery(conn,
'SELECT SEQ4() AS n FROM TABLE(GENERATOR(ROWCOUNT => 10000))'
)) {
count++;
}
expect(count).toBe(10000);
});
it('should handle errors correctly', async () => {
await expect(
query(conn, 'SELECT * FROM nonexistent_table_xyz')
).rejects.toThrow(/does not exist/);
});
});
```
### Step 6: Rollback Procedure
```bash
# Node.js — pin exact version
npm install [email protected] --save-exact
# Python — pin exact version
pip install snowflake-connector-python==3.6.0
# Git rollback
git checkout main -- package-lock.json package.json
npm ci
```
## Error Handling
| Issue | Cause | Solution |
|-------|-------|----------|
| `connectAsync is not a function` | Old SDK version | Use callback-based `connect()` |
| `Arrow deserialization error` | Arrow format mismatch | Set `arrow_number_to_decimal` |
| `BCR behavior change` | New Snowflake release | Test BCR bundle in staging first |
| `ImportError: pandas` | Missing pandas extra | Install with `[pandas]` extra |
| `SSL certificate error` | Driver TLS change | Update CA bundle, don't use `insecureConnect` |
## Resources
- [Node.js Driver Releases](https://github.com/snowflakedb/snowflake-connector-nodejs/releases)
- [Python Connector Release Notes](https://docs.snowflake.com/en/release-notes/clients-drivers/python-connector-2025)
- Behavior Change Bundles
## Next Steps
For CI integration during upgrades, see `snowflake-ci-integration`.
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.