You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2022/05/24 03:50:08 UTC
[iotdb] branch master updated: Fix code scanning issue in spark tsfile SQLConstant (#5996)
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 7d354edc08 Fix code scanning issue in spark tsfile SQLConstant (#5996)
7d354edc08 is described below
commit 7d354edc08b6580009a4ed692a3212dbb04466ec
Author: Haonan <hh...@outlook.com>
AuthorDate: Tue May 24 11:50:04 2022 +0800
Fix code scanning issue in spark tsfile SQLConstant (#5996)
---
.../iotdb/spark/tsfile/qp/common/SQLConstant.java | 26 +++++++++++-----------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/spark-tsfile/src/main/java/org/apache/iotdb/spark/tsfile/qp/common/SQLConstant.java b/spark-tsfile/src/main/java/org/apache/iotdb/spark/tsfile/qp/common/SQLConstant.java
index 571758dff8..afe778e3bd 100755
--- a/spark-tsfile/src/main/java/org/apache/iotdb/spark/tsfile/qp/common/SQLConstant.java
+++ b/spark-tsfile/src/main/java/org/apache/iotdb/spark/tsfile/qp/common/SQLConstant.java
@@ -66,15 +66,15 @@ public class SQLConstant {
public static final int TOK_METADATA_CREATE = 51;
public static final int TOK_METADATA_DELETE = 52;
public static final int TOK_METADATA_SET_FILE_LEVEL = 53;
- public static final int TOK_PORPERTY_CREATE = 54;
- public static final int TOK_PORPERTY_ADD_LABEL = 55;
- public static final int TOK_PORPERTY_DELETE_LABEL = 56;
- public static final int TOK_PORPERTY_LINK = 57;
- public static final int TOK_PORPERTY_UNLINK = 58;
+ public static final int TOK_PROPERTY_CREATE = 54;
+ public static final int TOK_PROPERTY_ADD_LABEL = 55;
+ public static final int TOK_PROPERTY_DELETE_LABEL = 56;
+ public static final int TOK_PROPERTY_LINK = 57;
+ public static final int TOK_PROPERTY_UNLINK = 58;
- public static Map<Integer, String> tokenSymbol = new HashMap<Integer, String>();
- public static Map<Integer, String> tokenNames = new HashMap<Integer, String>();
- public static Map<Integer, Integer> reverseWords = new HashMap<Integer, Integer>();
+ public static final Map<Integer, String> tokenSymbol = new HashMap<>();
+ public static final Map<Integer, String> tokenNames = new HashMap<>();
+ public static final Map<Integer, Integer> reverseWords = new HashMap<>();
static {
tokenSymbol.put(KW_AND, "&");
@@ -118,11 +118,11 @@ public class SQLConstant {
tokenNames.put(TOK_METADATA_CREATE, "TOK_METADATA_CREATE");
tokenNames.put(TOK_METADATA_DELETE, "TOK_METADATA_DELETE");
tokenNames.put(TOK_METADATA_SET_FILE_LEVEL, "TOK_METADATA_SET_FILE_LEVEL");
- tokenNames.put(TOK_PORPERTY_CREATE, "TOK_PORPERTY_CREATE");
- tokenNames.put(TOK_PORPERTY_ADD_LABEL, "TOK_PORPERTY_ADD_LABEL");
- tokenNames.put(TOK_PORPERTY_DELETE_LABEL, "TOK_PORPERTY_DELETE_LABEL");
- tokenNames.put(TOK_PORPERTY_LINK, "TOK_PORPERTY_LINK");
- tokenNames.put(TOK_PORPERTY_UNLINK, "TOK_PORPERTY_UNLINK");
+ tokenNames.put(TOK_PROPERTY_CREATE, "TOK_PROPERTY_CREATE");
+ tokenNames.put(TOK_PROPERTY_ADD_LABEL, "TOK_PROPERTY_ADD_LABEL");
+ tokenNames.put(TOK_PROPERTY_DELETE_LABEL, "TOK_PROPERTY_DELETE_LABEL");
+ tokenNames.put(TOK_PROPERTY_LINK, "TOK_PROPERTY_LINK");
+ tokenNames.put(TOK_PROPERTY_UNLINK, "TOK_PROPERTY_UNLINK");
}
static {