Skip to content
New issue

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

37 migrate to create streaming table api from create streaming live table #39

Conversation

ravi-databricks
Copy link
Contributor

  1. Upgraded dlt api from create_streaming_live_table to latest create_streaming_table
  2. Added data quality expectations for silver since create_streaming_table api takes expectations as arguments
  3. Added unit tests
  4. Corrected demo's and integration tests to incorporate silver_data_quality_expectations

…able

2.Added expectations for silver layer as part of new create_streaming_table function params
3.Fixed unit and integrations tests with new config change for silver data quality expectations
4.Modidied demo config for silver transformations data quality expectations
2.Modified demo for silver dqe
3.Corrected dbfs api for file create
2.Added doc for silver data quality expectation json
Copy link

codecov bot commented Mar 13, 2024

Codecov Report

Attention: Patch coverage is 82.35294% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 89.90%. Comparing base (1ff4b45) to head (965d075).
Report is 2 commits behind head on main.

Files Patch % Lines
src/dataflow_pipeline.py 79.16% 2 Missing and 3 partials ⚠️
src/onboard_dataflowspec.py 88.88% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #39      +/-   ##
==========================================
- Coverage   90.28%   89.90%   -0.39%     
==========================================
  Files           8        8              
  Lines         803      832      +29     
  Branches      149      161      +12     
==========================================
+ Hits          725      748      +23     
- Misses         31       33       +2     
- Partials       47       51       +4     
Flag Coverage Δ
unittests 89.90% <82.35%> (-0.39%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

@neil90 neil90 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@howardwu-db howardwu-db left a comment

Choose a reason for hiding this comment

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

Approved changes

Copy link

@ganeshchand ganeshchand left a comment

Choose a reason for hiding this comment

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

LGTM

ganeshchand

This comment was marked as duplicate.

ganeshchand

This comment was marked as duplicate.

self.ws.dbfs.mkdirs(runner_conf.dbfs_tmp_path + f"/{self.base_dir}/")
except Exception as e:
print(f"Error in creating directory {runner_conf.dbfs_tmp_path + f'/{self.base_dir}/'}")
print(e)
Copy link
Contributor

Choose a reason for hiding this comment

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

Use logger, not print statements

@@ -726,7 +734,7 @@ def run(self, runner_conf: DLTMetaRunnerConf):
print(e)
finally:
print("Cleaning up...")
self.clean_up(runner_conf)
# self.clean_up(runner_conf)
Copy link
Contributor

Choose a reason for hiding this comment

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

No commented code

@nfx nfx merged commit 077c71d into main Mar 19, 2024
3 of 5 checks passed
@ravi-databricks ravi-databricks deleted the 37-migrate-to-create_streaming_table-api-from-create_streaming_live_table branch April 30, 2024 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate to create_streaming_table api from create_streaming_live_table
5 participants