mirror of https://github.com/databricks/cli.git
Add comments
This commit is contained in:
parent
d4977c6919
commit
a08b59d4dd
|
@ -32,6 +32,7 @@
|
||||||
"sys.path.append('../src')\n",
|
"sys.path.append('../src')\n",
|
||||||
"from {{.project_name}} import main\n",
|
"from {{.project_name}} import main\n",
|
||||||
"\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",
|
"catalog = dbutils.widgets.get('catalog')\n",
|
||||||
"schema = dbutils.widgets.get('schema')\n",
|
"schema = dbutils.widgets.get('schema')\n",
|
||||||
"spark.sql(f'USE {catalog}.{schema}')\n",
|
"spark.sql(f'USE {catalog}.{schema}')\n",
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"# Load default catalog and schema as widget and set their values as the default catalog / schema\n",
|
"# 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",
|
"catalog = dbutils.widgets.get('catalog')\n",
|
||||||
"schema = dbutils.widgets.get('schema')\n",
|
"schema = dbutils.widgets.get('schema')\n",
|
||||||
"spark.sql(f'USE {catalog}.{schema}')"
|
"spark.sql(f'USE {catalog}.{schema}')"
|
||||||
|
|
Loading…
Reference in New Issue