Stored procedure / UDF migration
Workload scope
Stored procedure and UDF migration covers procedural control flow, custom functions, dynamic SQL, error handling, side effects, and test harnesses for converted routines.
Use this hub to find the source-to-target pages that already include workload-specific conversion risks, supported patterns, validation gates, examples, and cutover criteria. The hub is intentionally tied to the migrated child-page corpus so missing child content remains visible during parity review.
Related migration paths
- Databricks to BigQuery - Convert Databricks UDFs and notebook macros to BigQuery routines with parity for typing, control flow, dynamic SQL, and error handling, validated with tests.
- Databricks to Snowflake - Convert Databricks UDFs and macro-style notebook utilities to Snowflake UDFs/procedures with parity for typing, control flow, dynamic SQL, and error handling.
- Hadoop legacy cluster to BigQuery - Convert Hive/Impala/Spark UDFs and procedural utilities to BigQuery routines with parity for typing, NULL/regex behavior, and side effects with cutover gates.
- Hive to BigQuery - Convert Hive UDFs and macro ETL utilities to BigQuery routines with parity for typing, NULL/regex/time behavior and side effects, validated with harnesses.
- Impala to BigQuery - Convert Impala/Hive UDFs and script-driven logic to BigQuery routines with parity for typing, error handling, and side effects, validated with harnesses.
- Impala to Snowflake - Convert Impala/Hive UDFs and script-driven utilities to Snowflake routines with parity for typing, NULL/regex/time behavior, dynamic SQL, and side effects.
- Netezza to BigQuery - Convert Netezza UDFs and procedures to BigQuery routines with parity for typing, NULL/time behavior, dynamic SQL, and side effects, validated with harnesses.
- Oracle to BigQuery - Convert Oracle PL/SQL procedures, packages, and triggers to BigQuery routines with parity for control flow and side effects, validated with harnesses.
- Redshift to BigQuery - Convert Redshift procedures and UDFs to BigQuery routines with parity for control flow, dynamic SQL, typing, and side effects, validated with tests and gates.
- Redshift to Snowflake - Convert Redshift UDFs and procedures to Snowflake routines with parity for typing, NULL/time behavior, dynamic SQL, side effects, and idempotency checks.
- Snowflake to BigQuery - Migrate Snowflake procedures and UDFs to BigQuery routines with parity for control flow, typing, and error handling, validated by harness and reconciliation.
- Spark SQL to BigQuery - Convert Spark SQL UDFs and macro utilities to BigQuery routines with parity for typing, NULL/time behavior, and side effects, validated with test harnesses.
- Teradata to BigQuery - Convert Teradata procedures, macros, and UDFs to BigQuery routines with parity for control flow, dynamic SQL, error handling, and typing using validation gates.
- Teradata to Snowflake - Convert Teradata procedures, macros, and UDFs to Snowflake routines with parity for typing, NULL/time behavior, dynamic SQL, side effects, and idempotency.
- Vertica to BigQuery - Convert Vertica UDFs and ETL utilities to BigQuery routines with parity for typing, NULL/time behavior, dynamic SQL, and side effects, validated by harnesses.
Review points
- Routine boundaries and side effects
- Input/output typing and error behavior
- Dynamic SQL and transaction assumptions
- Replayable tests for converted functions and procedures
Acceptance criteria
A stored procedure / udf migration page is complete when the migration team can identify source assets, understand conversion assumptions, review unsupported or ambiguous constructs, run validation checks, and decide whether the workload is ready for cutover.
For each related path, confirm that the child page explains what changes, how conversion works, which patterns are supported, what can drift, and which evidence is required before production traffic moves to the target platform.