-
Notifications
You must be signed in to change notification settings - Fork 33
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
Add INPUT
command to load a CSV file
#678
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Lantao Jin <[email protected]>
@YANG-DB Which one do you think is better? #638 vs #678
Do you know why the resources path contains duplicated folders in our github build node? The actual csv file located in $PROJECT/integ-test/src/integration/resources/opensearch_dashboards_sample_data_flights.csv |
Let's keep this - option A #638 version as the one we go with |
Let me try to investigate this today... |
@LantaoJin can u also plz revolve latest merge conflicts ? |
// @Override | ||
// public UnresolvedPlan visitSearchFilterFrom(OpenSearchPPLParser.SearchFilterFromContext ctx) { | ||
// return new Filter(internalVisitExpression(ctx.logicalExpression())) | ||
// .attach(visit(ctx.fromClause())); | ||
// } |
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.
delete it.
@@ -427,4 +469,8 @@ private String getTextInQuery(ParserRuleContext ctx) { | |||
Token stop = ctx.getStop(); | |||
return query.substring(start.getStartIndex(), stop.getStopIndex() + 1); | |||
} | |||
|
|||
private boolean isTesting() { |
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 comments why include testing mode.
@YANG-DB I need some time to double confirm the file loading only be executed at once. Let me see how to get the metrics from Spark side in IT suite. Will rebase the code when my checking done. |
@LantaoJin can u plz change to PR into |
@LantaoJin |
This PR is stalled because it has been open for 30 days with no activity. |
Description
This PR is for the syntax option A described in #638
The PR for option B is #678.
Syntax of new command
input
(option A):Usage:
Issues Resolved
Resolves #638
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.