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

Add TPC-DS DDL test cases #487

Closed
wants to merge 1 commit into from
Closed

Add TPC-DS DDL test cases #487

wants to merge 1 commit into from

Conversation

yaooqinn
Copy link
Member

@yaooqinn yaooqinn commented Apr 5, 2021

yaooqinn Closes #487 735 0 1 Target Issue Powered by Pull Request Badge

Why are the changes needed?

Verifying TPC-DS DDLs, we should cover DML, DQL later, and maybe benchmark tests

How was this patch tested?

  • Add some test cases that check the changes thoroughly including negative and positive cases if possible

  • Add screenshots for manual tests if appropriate

  • Run test locally before make a pull request

@yaooqinn yaooqinn added the Test label Apr 5, 2021
@yaooqinn yaooqinn added this to the v1.2.0 milestone Apr 5, 2021
@yaooqinn yaooqinn self-assigned this Apr 5, 2021
@github-actions github-actions bot added the kind:security CVE-related label Apr 5, 2021
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Scan Summary

Tool Critical High Medium Low Status
Dependency Scan (java) 0 2 3 0
Python Security Analysis 3 0 0 0
Java Source Analyzer 0 0 0 1
Python Source Analyzer 0 0 0 0
Security Audit for Infrastructure 0 0 0 0
Secrets Audit 0 2 0 0
Scala Security Audit 0 6 0 0
Shell Script Analysis 0 0 0 0
Class File Analyzer 0 6 0 0

Recommendation

Please review the findings from Code scanning alerts before approving this pull request. You can also configure the build rules or add suppressions to customize this bot 👍

@codecov
Copy link

codecov bot commented Apr 5, 2021

Codecov Report

Merging #487 (6fb0ef5) into master (c6585b4) will decrease coverage by 0.96%.
The diff coverage is 59.61%.

❗ Current head 6fb0ef5 differs from pull request most recent head db558ea. Consider uploading reports for the commit db558ea to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master     #487      +/-   ##
==========================================
- Coverage   81.48%   80.52%   -0.97%     
==========================================
  Files         116      116              
  Lines        4235     4247      +12     
  Branches      516      514       -2     
==========================================
- Hits         3451     3420      -31     
- Misses        507      546      +39     
- Partials      277      281       +4     
Impacted Files Coverage Δ
...ache/kyuubi/ha/client/KyuubiServiceDiscovery.scala 100.00% <ø> (+44.44%) ⬆️
...org/apache/kyuubi/ha/client/ServiceDiscovery.scala 63.23% <40.00%> (-1.81%) ⬇️
...ala/org/apache/kyuubi/ctl/KyuubiCtlArguments.scala 71.97% <56.00%> (+0.73%) ⬆️
...la/org/apache/kyuubi/ha/HighAvailabilityConf.scala 98.14% <83.33%> (-1.86%) ⬇️
...rg/apache/kyuubi/engine/spark/SparkSQLEngine.scala 69.23% <100.00%> (ø)
...in/scala/org/apache/kyuubi/config/KyuubiConf.scala 93.54% <100.00%> (+0.09%) ⬆️
...a/org/apache/kyuubi/ctl/KyuubiCtlOptionParser.java 100.00% <100.00%> (ø)
...scala/org/apache/kyuubi/operation/GetColumns.scala 0.00% <0.00%> (-94.45%) ⬇️
...he/kyuubi/engine/spark/shim/CatalogShim_v3_0.scala 59.21% <0.00%> (-28.95%) ⬇️
...ache/kyuubi/operation/KyuubiOperationManager.scala 55.40% <0.00%> (-6.76%) ⬇️
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c6585b4...db558ea. Read the comment docs.

Field("sr_reason_sk", int),
Field("sr_ticket_number", int),
Field("sr_return_quantity", int),
Field("sr_return_amt", int),
Copy link
Contributor

Choose a reason for hiding this comment

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

Spark use the long type to define these field type and some other, do we need to follow those ? Althought the standard tpcds seems does not require the type of identifier which allowed both int and long.

Copy link
Member Author

Choose a reason for hiding this comment

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

FYI, apache/spark#32037. I am going to change Spark's definition. It's no reason to use long for those fields

Copy link
Contributor

Choose a reason for hiding this comment

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

ah I see, let's wait that PR merged first

Copy link
Member Author

Choose a reason for hiding this comment

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

the spark pr merged, can you proceed?

@ulysses-you
Copy link
Contributor

thanks merging to master for v1.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants