forked from databrickslabs/remorph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
labs.yml
60 lines (59 loc) · 2.73 KB
/
labs.yml
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
49
50
51
52
53
54
55
56
57
58
59
60
---
name: remorph
description: Code Transpiler and Data Reconciliation tool for Accelerating Data onboarding to Databricks from EDW, CDW and other ETL sources.
install:
min_runtime_version: 13.3
require_running_cluster: false
require_databricks_connect: true
script: src/databricks/labs/remorph/install.py
uninstall:
script: src/databricks/labs/remorph/uninstall.py
entrypoint: src/databricks/labs/remorph/cli.py
min_python: 3.10
commands:
- name: transpile
description: Transpile SQL script to Databricks SQL
flags:
- name: source
description: Input SQL Dialect Type Accepted Values [snowflake, tsql]
- name: input-sql
description: Input SQL Folder or File
- name: output-folder
default: None
description: Output Location For Storing Transpiled Cod
- name: skip-validation
default: true
description: Validate Transpiled Code, default True validation skipped, False validate
- name: catalog-name
default: None
description: Catalog Name Applicable only when Validation Mode is DATABRICKS
- name: schema-name
default: None
description: Schema Name Applicable only when Validation Mode is DATABRICKS
- name: mode
default: current
description: Run in Current or Experimental Mode, Accepted Values [experimental, current], Default current, experimental mode will execute including any Private Preview features
table_template: |-
total_files_processed\ttotal_queries_processed\tno_of_sql_failed_while_parsing\tno_of_sql_failed_while_validating\terror_log_file
{{range .}}{{.total_files_processed}}\t{{.total_queries_processed}}\t{{.no_of_sql_failed_while_parsing}}\t{{.no_of_sql_failed_while_validating}}\t{{.error_log_file}}
{{end}}
- name: reconcile
description: Reconcile is an utility to streamline the reconciliation process between source data and target data residing on Databricks.
- name: aggregates-reconcile
description: Aggregates Reconcile is an utility to streamline the reconciliation process, specific aggregate metric is compared between source and target data residing on Databricks.
- name: generate-lineage
description: Utility to generate a lineage of the SQL files
flags:
- name: source
description: Input SQL Dialect Type Accepted Values [snowflake, tsql]
- name: input-sql
description: Input SQL Folder or File
- name: output-folder
description: Directory to store the generated lineage file
- name: configure-secrets
description: Utility to setup Scope and Secrets on Databricks Workspace
- name: debug-script
description: "[INTERNAL] Debug Script"
flags:
- name: name
description: Filename to debug