seagle-yuan commented on code in PR #1847:
URL:
https://github.com/apache/incubator-hugegraph/pull/1847#discussion_r863654886
##########
hugegraph-scylladb/src/main/java/com/baidu/hugegraph/backend/store/scylladb/ScyllaDBTablesWithMV.java:
##########
@@ -230,24 +230,24 @@ protected void dropTable(CassandraSessionPool.Session
session) {
protected List<Select> query2Select(String table, Query query) {
if (isQueryByLabel(query)) {
// Query from materialized view
- return super.query2Select(MV_LABEL2VERTEX, query);
+ return super.query2Select(mvLabel2Vertex, query);
}
return super.query2Select(table, query);
}
}
public static class Edge extends CassandraTables.Edge {
- private final String MV_LABEL2EDGE = mvLabelTable(this.table());
+ private final String mvLabel2Edge = mvLabelTable(this.table());
- private final String LABEL = CassandraTable.formatKey(HugeKeys.LABEL);
- private final List<String> KEYS = this.idColumnName().stream()
+ private static final String LABEL =
CassandraTable.formatKey(HugeKeys.LABEL);
Review Comment:
need static?
--
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]