cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Lakebridge Transpile paths

Fikrat
New Contributor III

Hi there,

What kind of source and target paths can I use in Transpile command?
I'm trying to run command:
databricks labs lakebridge transpile --source-dialect tsql --input-source 

and I get error:

ERROR [src/databricks/labs/lakebridge.transpile] ValueError: Invalid path for '--input-source', does not exist XXX 
Error: unexpected end of JSON input

I tried using dbfs paths as well as my local paths, and it didn't work. 

2 ACCEPTED SOLUTIONS

Accepted Solutions

szymon_dybczak
Esteemed Contributor III

Hi @Fikrat ,

First of all make sure that you're using newest version of databricks lakebridge. In newest version --source-dialect supports following values:

- datastage

- informatica (desktop edition)

- informatica cloud

- mssql  (your case)

- netezza

- oracle

- synapse

- teradata

Now, --input-source argument expect absolute path to a file that contains sql to transpile.

szymon_dybczak_0-1755526975548.png

In my case, I've installed lakebridge on my PC following official guide. Here's how I executed command. It worked without any issue.

szymon_dybczak_1-1755527070607.png

Here's a status of successful transpilation process:

szymon_dybczak_2-1755527188498.png

 

Official guide:
Transpile Guide | Lakebridge

View solution in original post

Excellent, would you be able to provide a sample code or any reference material on that?

View solution in original post

7 REPLIES 7

szymon_dybczak
Esteemed Contributor III

Hi @Fikrat ,

First of all make sure that you're using newest version of databricks lakebridge. In newest version --source-dialect supports following values:

- datastage

- informatica (desktop edition)

- informatica cloud

- mssql  (your case)

- netezza

- oracle

- synapse

- teradata

Now, --input-source argument expect absolute path to a file that contains sql to transpile.

szymon_dybczak_0-1755526975548.png

In my case, I've installed lakebridge on my PC following official guide. Here's how I executed command. It worked without any issue.

szymon_dybczak_1-1755527070607.png

Here's a status of successful transpilation process:

szymon_dybczak_2-1755527188498.png

 

Official guide:
Transpile Guide | Lakebridge

Fikrat
New Contributor III

Thanks, @szymon_dybczak , that resolved my initial problem and I was able to run command fine. Is it possible to run Transpile from notebook as well? The official document includes example of using Reconcile from notebook, but not sure about Transpile.

Thanks!

szymon_dybczak
Esteemed Contributor III

Hi @Fikrat ,

Great that it worked for you ๐Ÿ™‚ And yes, I think it should work from notebook as well

Excellent, would you be able to provide a sample code or any reference material on that?

szymon_dybczak
Esteemed Contributor III

Basically, follow the same steps as in guide to which I've shared a link above. If you will have trouble with installation, let me know and tomorrow I can try to create it on my databricks instance ๐Ÿ˜‰

I didn't find any info on usage of Transpiler classes from python in that guide, that's why asked. But it's okay if you don't have answers. This product is new and documentation they provided is scarce, so hopefully they add more materials soon.

Thanks!

 

Fikrat
New Contributor III

Also, what cloud source locations are available for Transpile- dbfs, Unity Catalog volumes, etc?

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now