Skip to content

[SPARK-37459][BUILD] Upgrade commons-cli to 1.5.0#34707

Closed
sarutak wants to merge 1 commit intoapache:masterfrom
sarutak:upgrade-commons-cli-1.5.0
Closed

[SPARK-37459][BUILD] Upgrade commons-cli to 1.5.0#34707
sarutak wants to merge 1 commit intoapache:masterfrom
sarutak:upgrade-commons-cli-1.5.0

Conversation

@sarutak
Copy link
Member

@sarutak sarutak commented Nov 25, 2021

What changes were proposed in this pull request?

This PR upgrades commons-cli from 1.2 to 1.5.0.

Why are the changes needed?

Currently used commons-cli is too old and contains an issue which affects the behavior of bin/spark-sql

bin/spark-sql -e 'SELECT "Spark"'
...
Error in query: 
no viable alternative at input 'SELECT "'(line 1, pos 7)

== SQL ==
SELECT "Spark
-------^^^

The root cause of this issue seems to be resolved in CLI-185.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Whether the build passes should be tested by CIs.
Confirmed bin/spark-sql -e 'SELECT "Spark"' run successfully.

@github-actions github-actions bot added the BUILD label Nov 25, 2021
@SparkQA
Copy link

SparkQA commented Nov 25, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/50088/

@SparkQA
Copy link

SparkQA commented Nov 25, 2021

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/50088/

@HyukjinKwon
Copy link
Member

Merged to master.

@SparkQA
Copy link

SparkQA commented Nov 25, 2021

Test build #145616 has finished for PR 34707 at commit 9a39778.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

dongjoon-hyun pushed a commit that referenced this pull request Dec 4, 2023
### What changes were proposed in this pull request?
The pr aims to upgrade `commons-cli` from `1.5.0` to `1.6.0`.

### Why are the changes needed?
- The last upgrade occurred two years ago, #34707
- The full release notes: https://commons.apache.org/proper/commons-cli/changes-report.html#a1.6.0
- The version mainly focus on fixing bugs:
Fix NPE in CommandLine.resolveOption(String). Fixes [CLI-283](https://issues.apache.org/jira/browse/CLI-283).
CommandLine.addOption(Option) should not allow a null Option. Fixes [CLI-283](https://issues.apache.org/jira/browse/CLI-283).
CommandLine.addArgs(String) should not allow a null String. Fixes [CLI-283](https://issues.apache.org/jira/browse/CLI-283).
NullPointerException thrown by CommandLineParser.parse(). Fixes [CLI-317](https://issues.apache.org/jira/browse/CLI-317).
StringIndexOutOfBoundsException thrown by CommandLineParser.parse(). Fixes [CLI-313](https://issues.apache.org/jira/browse/CLI-313).

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
Pass GA.

### Was this patch authored or co-authored using generative AI tooling?
No.

Closes #44132 from panbingkun/SPARK-46218.

Authored-by: panbingkun <pbk1982@gmail.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
asl3 pushed a commit to asl3/spark that referenced this pull request Dec 5, 2023
### What changes were proposed in this pull request?
The pr aims to upgrade `commons-cli` from `1.5.0` to `1.6.0`.

### Why are the changes needed?
- The last upgrade occurred two years ago, apache#34707
- The full release notes: https://commons.apache.org/proper/commons-cli/changes-report.html#a1.6.0
- The version mainly focus on fixing bugs:
Fix NPE in CommandLine.resolveOption(String). Fixes [CLI-283](https://issues.apache.org/jira/browse/CLI-283).
CommandLine.addOption(Option) should not allow a null Option. Fixes [CLI-283](https://issues.apache.org/jira/browse/CLI-283).
CommandLine.addArgs(String) should not allow a null String. Fixes [CLI-283](https://issues.apache.org/jira/browse/CLI-283).
NullPointerException thrown by CommandLineParser.parse(). Fixes [CLI-317](https://issues.apache.org/jira/browse/CLI-317).
StringIndexOutOfBoundsException thrown by CommandLineParser.parse(). Fixes [CLI-313](https://issues.apache.org/jira/browse/CLI-313).

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
Pass GA.

### Was this patch authored or co-authored using generative AI tooling?
No.

Closes apache#44132 from panbingkun/SPARK-46218.

Authored-by: panbingkun <pbk1982@gmail.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
dbatomic pushed a commit to dbatomic/spark that referenced this pull request Dec 11, 2023
### What changes were proposed in this pull request?
The pr aims to upgrade `commons-cli` from `1.5.0` to `1.6.0`.

### Why are the changes needed?
- The last upgrade occurred two years ago, apache#34707
- The full release notes: https://commons.apache.org/proper/commons-cli/changes-report.html#a1.6.0
- The version mainly focus on fixing bugs:
Fix NPE in CommandLine.resolveOption(String). Fixes [CLI-283](https://issues.apache.org/jira/browse/CLI-283).
CommandLine.addOption(Option) should not allow a null Option. Fixes [CLI-283](https://issues.apache.org/jira/browse/CLI-283).
CommandLine.addArgs(String) should not allow a null String. Fixes [CLI-283](https://issues.apache.org/jira/browse/CLI-283).
NullPointerException thrown by CommandLineParser.parse(). Fixes [CLI-317](https://issues.apache.org/jira/browse/CLI-317).
StringIndexOutOfBoundsException thrown by CommandLineParser.parse(). Fixes [CLI-313](https://issues.apache.org/jira/browse/CLI-313).

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
Pass GA.

### Was this patch authored or co-authored using generative AI tooling?
No.

Closes apache#44132 from panbingkun/SPARK-46218.

Authored-by: panbingkun <pbk1982@gmail.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants