-
Notifications
You must be signed in to change notification settings - Fork 638
Add scan/insert while alter test #8094
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
Conversation
46ce48e
to
b6e232a
Compare
⚪
🟢 |
⚪ ⚪
⚪
🟢 |
b6e232a
to
a4155da
Compare
ydb/tools/olap_workload/__main__.py
Outdated
|
||
def select_10(self, table_name): | ||
print(f"Select 10 {table_name}") | ||
self.driver.table_client.scan_query(f"SELECT * FROM {table_name} limit 10").next() |
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 do you specify so small limit?
ydb/tools/olap_workload/__main__.py
Outdated
|
||
data = [] | ||
|
||
for i in range(10): |
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.
make batch size a parameter
ydb/tools/olap_workload/__main__.py
Outdated
print(f"Add column {table_name}.{col_name}") | ||
|
||
def callee(session): | ||
session.execute_scheme(f"ALTER TABLE {table_name} ADD COLUMN {col_name} Int64") |
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.
add different types, including var len strings
ydb/tools/olap_workload/__main__.py
Outdated
data = [] | ||
|
||
for i in range(10): | ||
data.append({c: random.randint(0, 1000000) for c in schema}) |
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.
skip some columns
⚪
🟢 |
⚪ ⚪
⚪
🟢 |
Changelog entry
...
Changelog category
Additional information
...