apache / kyuubi

Apache Kyuubi is a distributed and multi-tenant gateway to provide serverless SQL on data warehouses and lakehouses.
https://kyuubi.apache.org/
Apache License 2.0
2.08k stars 905 forks source link

[Bug] Use kyuubi beeline connect kyuubi server error if url contains '--' string #6522

Open zcx513566 opened 2 months ago

zcx513566 commented 2 months ago

Code of Conduct

Search before asking

Describe the bug

Use kyuubi beeline connect kyuubi server error if url contains '--' string。 for example: bin/beeline -u "jdbc:hive2://fec0--0-0-c0-122:10009/default;#kyuubi.engine.type=SPARK_SQL;" after -- content removed as comments in kyuubi code args parser stage.

image

Affects Version(s)

1.9.0 and above

Kyuubi Server Log Output

No response

Kyuubi Engine Log Output

No response

Kyuubi Server Configurations

No response

Kyuubi Engine Configurations

No response

Additional context

No response

Are you willing to submit PR?

pan3793 commented 2 months ago

@zcx513566 This problem is caused by https://github.com/apache/kyuubi/issues/4972, I suppose it should affects 1.7.2+, 1.8.0+, 1.9.0+ and master, and aslo Hive 4.0+, could please confirm that?

pan3793 commented 2 months ago

Sorry, e26b57acda1d36a1cbfe07c105e24c1b0d18d2ce was reverted, the issue should be re-evaluated.

pan3793 commented 2 months ago

I confirmed this also affects Apache Hive BeeLine 4.0.0, let's fix it upstream first.

zcx513566 commented 2 months ago

@zcx513566 This problem is caused by #4972, I suppose it should affects 1.7.2+, 1.8.0+, 1.9.0+ and master, and aslo Hive 4.0+, could please confirm that?

It affects 1.7.2+, 1.8.0+, 1.9.0+ and master, and aslo hive 4.0+。