-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Sql statement api error messaging fixes. #14629
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -19,6 +19,8 @@ | |||||
|
|
||||||
| package org.apache.druid.msq.indexing.destination; | ||||||
|
|
||||||
| import com.fasterxml.jackson.annotation.JsonValue; | ||||||
|
|
||||||
| /** | ||||||
| * Determines the destination for results of select queries. | ||||||
| */ | ||||||
|
|
@@ -27,21 +29,38 @@ public enum MSQSelectDestination | |||||
| /** | ||||||
| * Writes all the results directly to the report. | ||||||
| */ | ||||||
| TASK_REPORT(false), | ||||||
| TASKREPORT("taskReport", false), | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should use a snake case for the static variable names. Please revert it to the original values.
Suggested change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was done so that we are able to still use the query context enum methods. Also I think
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Cool! |
||||||
| /** | ||||||
| * Writes the results as frame files to durable storage. Task report can be truncated to a preview. | ||||||
| */ | ||||||
| DURABLE_STORAGE(true); | ||||||
| DURABLESTORAGE("durableStorage", true); | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| private final String name; | ||||||
| private final boolean shouldTruncateResultsInTaskReport; | ||||||
|
|
||||||
| public boolean shouldTruncateResultsInTaskReport() | ||||||
| { | ||||||
| return shouldTruncateResultsInTaskReport; | ||||||
| } | ||||||
|
|
||||||
| MSQSelectDestination(boolean shouldTruncateResultsInTaskReport) | ||||||
| MSQSelectDestination(String name, boolean shouldTruncateResultsInTaskReport) | ||||||
| { | ||||||
| this.name = name; | ||||||
| this.shouldTruncateResultsInTaskReport = shouldTruncateResultsInTaskReport; | ||||||
| } | ||||||
|
|
||||||
| @JsonValue | ||||||
| public String getName() | ||||||
| { | ||||||
| return name; | ||||||
| } | ||||||
|
|
||||||
| @Override | ||||||
| public String toString() | ||||||
| { | ||||||
| return "MSQSelectDestination{" + | ||||||
| "name='" + name + '\'' + | ||||||
| ", shouldTruncateResultsInTaskReport=" + shouldTruncateResultsInTaskReport + | ||||||
| '}'; | ||||||
| } | ||||||
| } | ||||||
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.
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.
The location where the workers write the intermediate results is always different hence I would like to keep the wording as is unless you feel strongly about it.