File size: 1,156 Bytes
12eff8e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
language: en
license: apache-2.0
library_name: morphsql
# Product name on the Hub UI / Space: MorphSQL
pipeline_tag: text-classification
tags:
  - morphsql
  - agent
  - code
  - sql
  - text-generation
  - text-classification
  - rag
  - sklearn
  - migration
  - dbt
  - snowflake
datasets:
  - dgvj-work/vertica-snowflake-pairs
---

# MorphSQL

Convert Vertica / Oracle / Redshift / BigQuery SQL to **pandas**, **PySpark**, Snowflake, BigQuery, or dbt.

> Brand: **MorphSQL** · Package import: `morphsql` · Hub slug: `dgvj-work/morphsql`

## Artifacts
- `risk_classifier.joblib` — migration risk (`low` / `medium` / `high`)
- `rewrite_vocabulary.json` — rewrite lexicon
- `config.json` — dialect metadata

## Quick start

```python
from morphsql.ai import pipeline

print(pipeline("sql-migration")("SELECT COALESCE(a, 0) FROM t", source="snowflake", target="pandas"))
print(pipeline("sql-migration")("SELECT COALESCE(a, 0) FROM t", source="snowflake", target="pyspark"))
print(pipeline("sql-risk-classification")("EXECUTE IMMEDIATE 'x'"))
```

## Demo
https://huggingface.co/spaces/dgvj-work/morphsql

Author: Digvijay Waghela · Apache-2.0