SQL Embedded code
Transform the SQL Code embedded in your Scala / Python Code
Last updated
Transform the SQL Code embedded in your Scala / Python Code
Last updated
There are instances where the Python or Scala code has embedded SQL code that requires transformation. SMA parses embedded SQL code in the following extensions:
Python files (.py)
Scala files (.scala)
Jupyter Notebook (.ipynb)
Databricks (.python, .scala)
Databricks Notebooks (.dbc)
Using a function on Python:
Some unsupported scenarios are:
Using string variables with SQL Code:
Using basic concatenation to create SQL code:
Using interpolations to create SQL code:
Using functions that create SQL queries:
When the SMA identifies an unsupported case, it generates an in the output code.
In Scala code the error code for unsupported embedded SQL is
For Python code the error code for unsupported embedded SQL is