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

Added functions for check column table type table of any type of sche… #347

Merged
merged 5 commits into from
Sep 15, 2023

Conversation

rekby
Copy link
Member

@rekby rekby commented Aug 23, 2023

…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:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Other information

@github-actions
Copy link

github-actions bot commented Aug 23, 2023

🌋 Here are results of SLO test for python-sync:

Grafana Dashboard

SLO-sync

@rekby rekby requested a review from Valeria1235 August 24, 2023 07:51
: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
Copy link
Contributor

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

Copy link
Member Author

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]
Copy link
Contributor

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

@rekby rekby merged commit 7da081f into main Sep 15, 2023
11 checks passed
@rekby rekby deleted the table-types branch September 15, 2023 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants