You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hugegraph.apache.org by ji...@apache.org on 2023/01/19 10:56:15 UTC
[incubator-hugegraph-toolchain] branch fix-license created (now 66853cd1)
This is an automated email from the ASF dual-hosted git repository.
jin pushed a change to branch fix-license
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph-toolchain.git
at 66853cd1 chore(license): fix 3rd party license problems
This branch includes the following new commits:
new 66853cd1 chore(license): fix 3rd party license problems
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[incubator-hugegraph-toolchain] 01/01: chore(license): fix 3rd party license problems
Posted by ji...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jin pushed a commit to branch fix-license
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph-toolchain.git
commit 66853cd1311a1fa3acf63cc9c7ba3b3efa891030
Author: imbajin <ji...@apache.org>
AuthorDate: Thu Jan 19 18:56:08 2023 +0800
chore(license): fix 3rd party license problems
---
.../org/apache/hugegraph/serializer/direct/reuse/BytesDemo.java | 1 -
.../java/org/apache/hugegraph/config/TomcatServletConfig.java | 1 +
hugegraph-hubble/package.json | 3 ++-
.../main/java/org/apache/hugegraph/loader/util/ParquetUtil.java | 9 ++++-----
4 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/hugegraph-client/src/main/java/org/apache/hugegraph/serializer/direct/reuse/BytesDemo.java b/hugegraph-client/src/main/java/org/apache/hugegraph/serializer/direct/reuse/BytesDemo.java
index 789108a4..ba3c1e48 100644
--- a/hugegraph-client/src/main/java/org/apache/hugegraph/serializer/direct/reuse/BytesDemo.java
+++ b/hugegraph-client/src/main/java/org/apache/hugegraph/serializer/direct/reuse/BytesDemo.java
@@ -30,7 +30,6 @@ import org.apache.hugegraph.structure.graph.Edge;
import org.apache.hugegraph.structure.graph.Vertex;
/**
- * @author jin
* This class is a demo for rocksdb/HBase put(rowkey, values) which use Client-Side's graph struct
* And we don't need to construct the graph element, just use it and transfer them to bytes array
* instead of json format
diff --git a/hugegraph-hubble/hubble-be/src/main/java/org/apache/hugegraph/config/TomcatServletConfig.java b/hugegraph-hubble/hubble-be/src/main/java/org/apache/hugegraph/config/TomcatServletConfig.java
index 4b416854..ffce8205 100644
--- a/hugegraph-hubble/hubble-be/src/main/java/org/apache/hugegraph/config/TomcatServletConfig.java
+++ b/hugegraph-hubble/hubble-be/src/main/java/org/apache/hugegraph/config/TomcatServletConfig.java
@@ -30,6 +30,7 @@ import org.springframework.boot.web.server.WebServerFactoryCustomizer;
import org.springframework.stereotype.Component;
/**
+ * TODO: 404 not found & ensure if we need this class?
* Reference http://www.zizhixiaoshe.com/article/invalidcookie.html
*/
@Component
diff --git a/hugegraph-hubble/package.json b/hugegraph-hubble/package.json
index bfaf5613..57956f54 100644
--- a/hugegraph-hubble/package.json
+++ b/hugegraph-hubble/package.json
@@ -1,3 +1,4 @@
+// TODO: remove or update this file?
{
"name": "hubble",
"version": "1.6.0",
@@ -5,7 +6,7 @@
"license": "Apache-2.0",
"repository": {
"type": "git",
- "url": "https://github.com/hugegraph/hugegraph-hubble"
+ "url": "https://github.com/hugegraph/hugegraph-hubble" // wrong url
},
"husky": {
"hooks": {
diff --git a/hugegraph-loader/src/main/java/org/apache/hugegraph/loader/util/ParquetUtil.java b/hugegraph-loader/src/main/java/org/apache/hugegraph/loader/util/ParquetUtil.java
index 792cad47..c719f425 100644
--- a/hugegraph-loader/src/main/java/org/apache/hugegraph/loader/util/ParquetUtil.java
+++ b/hugegraph-loader/src/main/java/org/apache/hugegraph/loader/util/ParquetUtil.java
@@ -24,19 +24,17 @@ import java.time.ZoneId;
import java.time.temporal.JulianFields;
import java.util.Date;
+import org.apache.hugegraph.loader.exception.LoadException;
import org.apache.parquet.example.data.Group;
import org.apache.parquet.io.api.Binary;
import org.apache.parquet.schema.Type;
-import org.apache.hugegraph.loader.exception.LoadException;
-
public class ParquetUtil {
public static Object convertObject(Group group, int fieldIndex) {
Type fieldType = group.getType().getType(fieldIndex);
if (!fieldType.isPrimitive()) {
- throw new LoadException("Unsupported rich object type %s",
- fieldType);
+ throw new LoadException("Unsupported rich object type %s", fieldType);
}
String fieldName = fieldType.getName();
// Field is no value
@@ -70,7 +68,8 @@ public class ParquetUtil {
return object;
}
- /*
+ /**
+ * TODO: ensure the refer is valid or rewrite it by ourselves
* Reference:https://stackoverflow.com/questions/53690299/int96value-to-date-string
*/
private static Date dateFromInt96(Binary value) {