Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"type": "string",
"default": "yes",
"enum": ["yes", "no"],
"description": "Include a stub (sample) Python package 'my_project/src'",
"description": "Include a stub (sample) Python package in '{{.project_name}}/src'",
"order": 4
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ This file only template directives; it is skipped for the actual output.
{{skip "{{.project_name}}/tests/main_test.py"}}
{{skip "{{.project_name}}/setup.py"}}
{{skip "{{.project_name}}/pytest.ini"}}
{{skip "{{.project_name}}/requirements-dev.txt"}}
{{end}}

{{if $notDLT}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,3 @@ resources:
libraries:
- notebook:
path: ../src/dlt_pipeline.ipynb

configuration:
bundle.sourcePath: /Workspace/${workspace.file_path}/src
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"# Import DLT and src/{{.project_name}}\n",
"import dlt\n",
"import sys\n",
"sys.path.append(spark.conf.get(\"bundle.sourcePath\", \".\"))\n",
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to verify the PYTHONPATH fix for DLT has been rolled out everywhere before making this change.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. DLT side change is in dlt release 37 and has been rolled out to all stages yesterday.

"from pyspark.sql.functions import expr\n",
"from {{.project_name}} import main"
{{else}}
Expand Down