-
Notifications
You must be signed in to change notification settings - Fork 50
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
Added functions for check column table type table of any type of sche… #347
Conversation
🌋 Here are results of SLO test for python-sync: |
:return: True if scheme entry is a table and False otherwise | ||
:return: True if scheme entry is a row table and False otherwise (same as is_row_table) | ||
""" | ||
return entry == SchemeEntryType.TABLE |
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.
should use is
with enums
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.
In near places used =
ydb/scheme.py
Outdated
:param entry: A scheme entry to check | ||
:return: True if scheme entry is table (independent of table type) and False otherwise | ||
""" | ||
return entry in [SchemeEntryType.TABLE, SchemeEntryType.COLUMN_TABLE] |
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.
better is tuple or set
…me entry
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en
Pull request type
Please check the type of change your PR introduces:
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Other information