-
Notifications
You must be signed in to change notification settings - Fork 3k
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
fix(ingestion): powerbi # Not all arguments converted to string #7157
Conversation
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( |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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}")
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
…b-project#7157) Co-authored-by: MohdSiddique Bagwan <[email protected]>
…b-project#7157) Co-authored-by: MohdSiddique Bagwan <[email protected]>
No description provided.