Add comments

This commit is contained in:
Lennart Kats 2024-12-10 11:06:56 +01:00
parent d4977c6919
commit a08b59d4dd
No known key found for this signature in database
GPG Key ID: 1EB8B57673197023
2 changed files with 2 additions and 0 deletions

View File

@ -32,6 +32,7 @@
"sys.path.append('../src')\n",
"from {{.project_name}} import main\n",
"\n",
{{- /* We can use the short form here without 'dbutils.text()' since the widgets are defined in the metadata below. */}}
"catalog = dbutils.widgets.get('catalog')\n",
"schema = dbutils.widgets.get('schema')\n",
"spark.sql(f'USE {catalog}.{schema}')\n",

View File

@ -24,6 +24,7 @@
"outputs": [],
"source": [
"# Load default catalog and schema as widget and set their values as the default catalog / schema\n",
{{- /* We can use the short form here without 'dbutils.text()' since the widgets are defined in the metadata below. */}}
"catalog = dbutils.widgets.get('catalog')\n",
"schema = dbutils.widgets.get('schema')\n",
"spark.sql(f'USE {catalog}.{schema}')"