Skip to content
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

[Fix-15668][Api]Fix data quality cannot get database/columns with kyuubi #15671

Closed
wants to merge 2 commits into from

Conversation

liuchunhua
Copy link
Contributor

@liuchunhua liuchunhua commented Mar 5, 2024

Purpose of the pull request

resolves #15668

Brief change log

Verify this pull request

This pull request is code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(or)

If your pull request contain incompatible change, you should also add it to docs/docs/en/guide/upgrede/incompatible.md

@SbloodyS SbloodyS added bug Something isn't working first time contributor First-time contributor 3.2.2 labels Mar 5, 2024
@SbloodyS SbloodyS added this to the 3.2.2 milestone Mar 5, 2024
@codecov-commenter
Copy link

codecov-commenter commented Mar 5, 2024

Codecov Report

Attention: Patch coverage is 0% with 19 lines in your changes are missing coverage. Please review.

Project coverage is 38.96%. Comparing base (e984300) to head (d0bb720).

❗ Current head d0bb720 differs from pull request most recent head f8fa69f. Consider uploading reports for the commit f8fa69f to get more accurate results

Files Patch % Lines
...eduler/api/service/impl/DataSourceServiceImpl.java 0.00% 18 Missing ⚠️
.../org/apache/dolphinscheduler/spi/enums/DbType.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                dev   #15671      +/-   ##
============================================
- Coverage     38.97%   38.96%   -0.02%     
  Complexity     4839     4839              
============================================
  Files          1316     1316              
  Lines         45000    45015      +15     
  Branches       4817     4817              
============================================
  Hits          17539    17539              
- Misses        25565    25580      +15     
  Partials       1896     1896              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

rs = metaData.getColumns(
getCatalog(dataSource.getType(), database),
getDbSchemaPattern(dataSource.getType(), database, schema, connectionParam),
tableName, "%");

Check failure

Code scanning / CodeQL

Query built from user-controlled sources High

This query depends on a
user-provided value
.
@@ -88,7 +88,7 @@ public String getDescp() {
}

public boolean isHive() {
return this == DbType.HIVE;
return this == DbType.HIVE || this == DbType.KYUUBI;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May I ask why KYUUBI is also true in isHive()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

KYUUBI use spark engine to query hive table by default, using HiveReader is better.

Copy link

sonarcloud bot commented Mar 6, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 60%)
19.4% Duplication on New Code (required ≤ 10%)

See analysis details on SonarCloud

Copy link

github-actions bot commented Jul 5, 2024

This pull request has been automatically marked as stale because it has not had recent activity for 120 days. It will be closed in 7 days if no further activity occurs.

@github-actions github-actions bot added the Stale label Jul 5, 2024
Copy link

This pull request has been closed because it has not had recent activity. You could reopen it if you try to continue your work, and anyone who are interested in it are encouraged to continue work on this pull request.

@github-actions github-actions bot closed this Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.2.2 backend bug Something isn't working first time contributor First-time contributor Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] [Api] DataQuality:cannot get database or columns with kyuubi
4 participants