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

fix(ingest): profiling - Changing profiling defaults #6640

Merged
merged 15 commits into from
Dec 7, 2022

Conversation

treff7es
Copy link
Contributor

@treff7es treff7es commented Dec 5, 2022

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

@github-actions github-actions bot added the ingestion PR or Issue related to the ingestion of metadata label Dec 5, 2022
@github-actions
Copy link

github-actions bot commented Dec 5, 2022

Unit Test Results (metadata ingestion)

       8 files         8 suites   1h 5m 36s ⏱️
   767 tests    765 ✔️ 2 💤 0
1 536 runs  1 531 ✔️ 5 💤 0

Results for commit 5f20843.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Dec 5, 2022

Unit Test Results (build & test)

633 tests   629 ✔️  15m 43s ⏱️
162 suites      4 💤
162 files        0

Results for commit 5f20843.

♻️ This comment has been updated with latest results.



@dataclass
class DetailedProfilerReport(SQLSourceReport):
Copy link
Collaborator

Choose a reason for hiding this comment

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

in general, I want to move towards shorter inheritance hierarchies. This should be DetailedProfilerReportMixin and should not inherit from SQLSourceReport, and instead the inheriting classes should inherit from this and SQLSourceReport

@treff7es treff7es marked this pull request as ready for review December 6, 2022 08:54
@treff7es treff7es requested a review from hsheth2 December 6, 2022 09:08
last_altered: datetime
size_in_bytes: int
rows_count: int
columns: List[SqlTableColumn] = field(default_factory=list)
Copy link
Collaborator

Choose a reason for hiding this comment

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

nice 👍

last_altered: datetime
comment: str
ddl: str
class BigqueryView(BaseView):
Copy link
Collaborator

Choose a reason for hiding this comment

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

For 100% correctness, this can be changed and the columns field can be removed. However, it's probably good enough as-is so no need to change it

Suggested change
class BigqueryView(BaseView):
class BigqueryView(BaseView[BigqueryColumn]):

@treff7es treff7es merged commit 9a1f78f into datahub-project:master Dec 7, 2022
cccs-Dustin pushed a commit to CybercentreCanada/datahub that referenced this pull request Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ingestion PR or Issue related to the ingestion of metadata
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants