-
Notifications
You must be signed in to change notification settings - Fork 30
/
labs.yml
96 lines (95 loc) · 4.28 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
---
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
- name: dialect
description: sql dialect
- name: debug-me
description: "[INTERNAL] Debug SDK connectivity"
- name: debug-coverage
description: "[INTERNAL] Run coverage tests"
flags:
- name: dialect
description: sql dialect
- name: src
description: The parent directory under which test queries are laid out
- name: dst
description: The directory under which the report files will be written
- name: extractor
description: The strategy for extracting queries from the test files. Valid strategies are "full" (when files contain only one input query) and "comment" (when files contain an input query and the corresponding translation, separated by a comment stating the dialect of each query).
- name: debug-estimate
description: "[INTERNAL] estimate migration effort"
flags:
- name: dialect
description: sql dialect
- name: source-queries
description: The folder with queries. Otherwise will attempt to fetch query history for a dialect
- name: console-output
default: true
description: Output results to a folder
- name: dst
description: The directory for report
- name: debug-bundle
description: "[INTERNAL] Generate bundle for the translated queries"
flags:
- name: dialect
description: sql dialect
- name: source-queries
description: The folder with queries. Otherwise will attempt to fetch query history for a dialect
- name: dst
description: The directory for generated files