Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Save job status tables option #311
Save job status tables option #311
Changes from 6 commits
e10592a
9bc6b8b
adf2493
141a417
e0bfdd0
ca0062c
a002618
4f7be5d
72022f3
295fe1f
869274f
bdeb5c1
c04021b
2b2e2c1
e1db7aa
a5ddcfe
8125d4d
a344266
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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'm not sure if we should create the status table for external tables, even if the
save_metadata_tables
option istrue
. Since there is no fault tolerance information saved, the only benefit is to track the number of times an external table is created and the session id it was created under.@alexey-temnikov, thoughts?
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 agree. We should have it documented and highlighted in the changelog, that this behaviour will be changed.
@jeremyp-bq, @Aryex, minor nit - should we consider another name instead of
save_metadata_tables
since it is specific to the rejected rows? Perhapssave_rejected_rows
?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.
@alexey-temnikov This PR is to turn off the status table by default and add an option to enable it, but I was thinking we could lump together the creation of the rejected rows table in the future under the same option, which is why it has the generic name
save_metadata_tables
.Unless you think it is better to have an option for creation of each (e.g.
save_status_table
and latersave_rejected_rows_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.
This was purely to mimic the old behavior. That said, it could be extended to provide an option to not record jobs of external tables. Something like:
save_metadata_tables: all | none | vertica-only
.I think using specific options would be better in the long run?
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 was thinking the logic would be like this, unless we see value in creating the status table for external tables:
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.
Sorry, I'm not following the condition. What do you mean by createExternalTable is defined AND not defined?
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.
Typo, fixed it.
To summarize my questions: