/oracle-ai-data-platform-workbench-spark-connectors:aidp-snowflakefrom oracle-ai-data-platform-workbench-spark-connectors
Read or write Snowflake from an AIDP notebook via Spark using the Snowflake Spark connector. Use when the user mentions Snowflake, Snowflake warehouse, sfUrl, sfUser, or wants to migrate from Snowflake. Auth is sfUser + sfPassword over the Snowflake Spark connector (`net.snowflake.spark.snowflake`).
Ships in oracle-ai-data-platform-workbench-spark-connectors. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
aidp-snowflake — Snowflake via the Snowflake Spark connectorBridge AIDP Spark to Snowflake using the official Snowflake Spark connector. Useful for migration off Snowflake or for cross-warehouse joins where Snowflake holds the source of truth.
aidp-jdbc-custom.The Snowflake Spark connector is not in the AIDP cluster image by default. Two ways to get it in.
The plugin's add_spark_connector_at_runtime helper downloads + registers both JARs in the running Spark session.
from oracle_ai_data_platform_connectors.jdbc import (
add_spark_connector_at_runtime, download_jdbc_jar,
)
jars = [
download_jdbc_jar(
maven_url="https://repo1.maven.org/maven2/net/snowflake/"
"spark-snowflake_2.12/3.1.1/spark-snowflake_2.12-3.1.1.jar",
target_path="/tmp/spark-snowflake_2.12-3.1.1.jar"),
download_jdbc_jar(
maven_url="https://repo1.maven.org/maven2/net/snowflake/"
"snowflake-jdbc/3.19.0/snowflake-jdbc-3.19.0.jar",
target_path="/tmp/snowflake-jdbc-3.19.0.jar"),
]
add_spark_connector_at_runtime(
spark,
jar_paths=jars,
verify_classes=[
"net.snowflake.spark.snowflake.DefaultSource",
"net.snowflake.client.jdbc.SnowflakeDriver",
],
register_jdbc_driver_class="net.snowflake.client.jdbc.SnowflakeDriver",
)
The helper does three things in one call: builds a URLClassLoader covering both JARs and sets it as the thread context CL (so Spark's ServiceLoader finds the snowflake format), registers the JDBC driver with DriverManager (for any code path that goes through getConnection), and calls SparkContext.addJar on each JAR (so executors fetch them — required because Snowflake reads partition across executors). All without a kernel restart.
Upload both JARs to a Volume and attach via the cluster Library tab. Persists across cluster restarts. Requires admin access. After restart, skip the runtime-load helper.
Pin the versions — newer Snowflake connector / JDBC may not be compatible with the cluster's Spark version. The pair tested on Spark 3.5.0 / Scala 2.12 is spark-snowflake_2.12-3.1.1 + snowflake-jdbc-3.19.0.
import os
snowflake_options = {
"sfUrl": os.environ["SNOW_URL"], # e.g. xy12345.us-east-1.snowflakecomputing.com
"sfUser": os.environ["SNOW_USER"],
"sfPassword": os.environ["SNOW_PASSWORD"],
"sfDatabase": os.environ.get("SNOW_DATABASE", "DATAFLOW"),
"sfSchema": os.environ.get("SNOW_SCHEMA", "DF_SCHEMA"),
"sfWarehouse": os.environ.get("SNOW_WAREHOUSE", "COMPUTE_WH"),
}
df = (spark.read
.format("snowflake")
.options(**snowflake_options)
.option("dbtable", os.environ["SNOW_TABLE"])
.load())
df.show(5)
(df.write
.format("snowflake")
.options(**snowflake_options)
.option("dbtable", os.environ["SNOW_TARGET_TABLE"])
.mode("overwrite")
.save())
*.snowflakecomputing.com.pem_private_key / sfAuthenticator options not covered in this skill.dbtable is the simplest spec. For complex pushdown use query instead — option("query", "SELECT ... FROM ... WHERE ...") runs the query in Snowflake and only ships the result.dbtable.data-engineering/ingestion/Connect_Using_Custom_JDBC_Driver.ipynbWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ahmedawan-oracle/claude-code-plugins --plugin oracle-ai-data-platform-workbench-spark-connectors25 skills in this plugin
/aidp-alh`aidp-alh` — Oracle AI Lakehouse / ADW / ATP via Spark JDBCConnect from an AIDP notebook to Oracle AI Lakehouse (ALH), Autonomous Data Warehouse (ADW), or Autonomous Transaction Processing (ATP) via Spark JDBC. Use when the user mentions ALH, AI Lakehouse, ADW, ATP, Autonomous Database, or wants to query a 26ai-backed Oracle Autonomous DB from Spark. Covers wallet (mTLS), IAM DB-Token (with on-executor refresh for long jobs), and API Key auth paths./aidp-aws-s3`aidp-aws-s3` — AWS S3 via the S3A connectorRead and write AWS S3 (`s3a://`) from an AIDP notebook. Use when the user mentions S3, AWS S3 bucket, s3a, or has AWS access keys. Auth is access key + secret key via the Hadoop S3A connector. boto3 is also available for non-Spark management operations (list, copy)./aidp-azure-adls`aidp-azure-adls` — Azure ADLS Gen2 via OAuth client-credentialsRead and write Azure Data Lake Storage Gen2 (`abfss://`) from an AIDP notebook. Use when the user mentions ADLS, Azure Data Lake, abfss, or wants to ingest from a multi-cloud Azure source. Auth is OAuth client-credentials (Service Principal client_id + secret + tenant).Other plugins' skills for the same job