-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: support all warehouses for tutorial #515
base: main
Are you sure you want to change the base?
Conversation
src/predictions/profiles_mlcorelib/py_native/profiles_tutorial/tutorial.py
Outdated
Show resolved
Hide resolved
src/predictions/profiles_mlcorelib/py_native/profiles_tutorial/database_manager.py
Outdated
Show resolved
Hide resolved
table for table in tables if table in new_table_names.values() | ||
] | ||
tables = self.get_table_names() | ||
new_tables = [new_table.lower() for new_table in new_table_names.values()] |
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.
Are we expecting the caller to pass new_table_names
in lower case ? Otherwise, the if check will return false.
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.
Yes we are lowecasing the table names
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.
This can lead to bugs. Its better to handle it inside the function instead of expecting the callers to do so.
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.
Got it
Description of the change
Type of change
Linear Ticket
Resolves PRML-1007
Checklists
Development
Code review