|
57 | 57 | import org.apache.iotdb.db.sql.parse.AstNode;
|
58 | 58 | import org.apache.iotdb.db.sql.parse.Node;
|
59 | 59 | import org.apache.iotdb.db.sql.parse.TSParser;
|
60 |
| -import org.apache.iotdb.tsfile.common.conf.TSFileConfig; |
61 | 60 | import org.apache.iotdb.tsfile.common.conf.TSFileDescriptor;
|
62 | 61 | import org.apache.iotdb.tsfile.common.constant.TsFileConstant;
|
63 | 62 | import org.apache.iotdb.tsfile.file.metadata.enums.CompressionType;
|
@@ -392,16 +391,16 @@ private void analyzePropertyUnLink(AstNode astNode) {
|
392 | 391 | private void analyzeMetadataCreate(AstNode astNode) throws MetadataErrorException {
|
393 | 392 | Path series = parsePath(astNode.getChild(0).getChild(0));
|
394 | 393 | AstNode paramNode = astNode.getChild(1);
|
395 |
| - String dataType = paramNode.getChild(0).getChild(0).getText(); |
396 |
| - String encodingType = paramNode.getChild(1).getChild(0).getText(); |
| 394 | + String dataType = paramNode.getChild(0).getChild(0).getText().toUpperCase(); |
| 395 | + String encodingType = paramNode.getChild(1).getChild(0).getText().toUpperCase(); |
397 | 396 | String compressor;
|
398 | 397 | int offset = 2;
|
399 | 398 | if (paramNode.getChildren().size() > offset
|
400 | 399 | && paramNode.getChild(offset).getToken().getText().equals("TOK_COMPRESSOR")) {
|
401 |
| - compressor = paramNode.getChild(offset).getChild(0).getText(); |
| 400 | + compressor = paramNode.getChild(offset).getChild(0).getText().toUpperCase(); |
402 | 401 | offset++;
|
403 | 402 | } else {
|
404 |
| - compressor = TSFileDescriptor.getInstance().getConfig().getCompressor(); |
| 403 | + compressor = TSFileDescriptor.getInstance().getConfig().getCompressor().toUpperCase(); |
405 | 404 | }
|
406 | 405 | checkMetadataArgs(dataType, encodingType, compressor);
|
407 | 406 | Map<String, String> props = new HashMap<>(paramNode.getChildCount() - offset + 1, 1);
|
|
0 commit comments