We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide support for dlt.apply_changes_from_snapshot
The text was updated successfully, but these errors were encountered:
Implementation Details: Onboarding:
"bronze_apply_changes_from_snapshot":{ "keys": ["id"] "scd_type": "1" "track_history_column_list": [] "track_history_except_column_list":[] }
DataflowPipeline:
Usage:
pip install dlt-meta
import dlt from src.dataflow_spec import BronzeDataflowSpec def exist(path): try: if dbutils.fs.ls(path) is None: return False else: return True except: return False def next_snapshot_and_version(latest_snapshot_version, dataflow_spec): latest_snapshot_version = latest_snapshot_version or 0 next_version = latest_snapshot_version + 1 bronze_dataflow_spec: BronzeDataflowSpec = dataflow_spec options = bronze_dataflow_spec.readerConfigOptions snapshot_format = bronze_dataflow_spec.sourceDetails["snapshot_format"] snapshot_root_path = bronze_dataflow_spec.sourceDetails['path'] snapshot_path = f"{snapshot_root_path}{next_version}.csv" if (exist(snapshot_path)): snapshot = spark.read.format(snapshot_format).options(**options).load(snapshot_path) return (snapshot, next_version) else: # No snapshot available return None
layer = spark.conf.get("layer", None) from src.dataflow_pipeline import DataflowPipeline DataflowPipeline.invoke_dlt_pipeline(spark, layer, next_snapshot_and_version=next_snapshot_and_version)
Sorry, something went wrong.
ravi-databricks
When branches are created from issues, their pull requests are automatically linked.
Provide support for dlt.apply_changes_from_snapshot
The text was updated successfully, but these errors were encountered: