simon824 commented on code in PR #306:
URL:
https://github.com/apache/incubator-hugegraph-toolchain/pull/306#discussion_r922928466
##########
hugegraph-loader/src/main/java/com/baidu/hugegraph/loader/spark/HugeGraphSparkLoader.java:
##########
@@ -199,7 +210,17 @@ private void parse(Row row,
.split(fileSource.delimiter()));
break;
case JDBC:
- //TODO: implement jdbc
+ Object[] structFields =
JavaConverters.asJavaCollection(row.schema().toList())
+ .toArray();
Review Comment:
`row.schema().toList()` will return `scala list`, need to convert to java
one.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]