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(ingestion): powerbi # Not all arguments converted to string #7157

Conversation

siddiquebagwan
Copy link
Contributor

No description provided.

@github-actions github-actions bot added the ingestion PR or Issue related to the ingestion of metadata label Jan 27, 2023
sa.select(
sa.func.APPROX_COUNT_DISTINCT(sa.column(column))
).select_from(self._table)
sa.select(sa.func.APPROX_COUNT_DISTINCT(sa.column(column))).select_from(
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is there change in the formatting?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

lintFix is doing this

@@ -48,7 +48,7 @@ def get_upstream_tables(
native_query_enabled: bool = True,
) -> List[resolver.DataPlatformTable]:
if table.expression is None:
logger.debug(table.full_name, "Expression is none")
logger.debug("Expression is none for table %s", table.full_name)
Copy link
Contributor

Choose a reason for hiding this comment

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

Please, can you use fstring instead of format strings?
Something like this:

logger.debug(f"Expression is none for table {table.full_name}")

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I used above format because argument only get process if debug is enabled

Copy link
Contributor

@treff7es treff7es left a comment

Choose a reason for hiding this comment

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

lgtm

@treff7es treff7es merged commit 54562cd into datahub-project:master Jan 27, 2023
ericyomi pushed a commit to ericyomi/datahub that referenced this pull request Feb 8, 2023
…b-project#7157)

Co-authored-by: MohdSiddique Bagwan <mohdsiddique.bagwan@gslab.com>
oleg-ruban pushed a commit to RChygir/datahub that referenced this pull request Feb 28, 2023
…b-project#7157)

Co-authored-by: MohdSiddique Bagwan <mohdsiddique.bagwan@gslab.com>
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.

None yet

3 participants