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

feat: support jdbc source for spark-loader #306

Merged
merged 4 commits into from
Jul 19, 2022
Merged

feat: support jdbc source for spark-loader #306

merged 4 commits into from
Jul 19, 2022

Conversation

simon824
Copy link
Member

closed #305

@codecov
Copy link

codecov bot commented Jul 14, 2022

Codecov Report

Merging #306 (1c390e6) into master (a594254) will decrease coverage by 0.33%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##             master     #306      +/-   ##
============================================
- Coverage     67.83%   67.49%   -0.34%     
  Complexity      877      877              
============================================
  Files            86       86              
  Lines          4004     4024      +20     
  Branches        474      475       +1     
============================================
  Hits           2716     2716              
- Misses         1084     1104      +20     
  Partials        204      204              
Impacted Files Coverage Δ
...u/hugegraph/loader/spark/HugeGraphSparkLoader.java 0.00% <0.00%> (ø)

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 a594254...1c390e6. Read the comment docs.

Comment on lines +213 to +214
Object[] structFields = JavaConverters.asJavaCollection(row.schema().toList())
.toArray();
Copy link
Member

@imbajin imbajin Jul 15, 2022

Choose a reason for hiding this comment

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

the differ with list.toArray()?

Copy link
Member Author

Choose a reason for hiding this comment

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

row.schema().toList() will return scala list, need to convert to java one.

@javeme javeme merged commit 379b2e5 into apache:master Jul 19, 2022
@javeme javeme added the loader hugegraph-loader label Jul 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
loader hugegraph-loader
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Support jdbc source for spark-loader
3 participants