Support double quotation in Path and optimize the Path String usage v2 (#1627)
authorBoris <geniuspig@apache.org>
Sat, 29 Aug 2020 03:34:16 +0000 (11:34 +0800)
committerGitHub <noreply@github.com>
Sat, 29 Aug 2020 03:34:16 +0000 (11:34 +0800)
commit12e1332719baf709a0abc6ec028bbdfa2b149c53
treea87ec76e58a9255bbb1e7d817824fb5ad2f04627
parent9789c2c3edf7b29297505bbc08aa7737a29594a8
Support double quotation in Path and optimize the Path String usage v2 (#1627)

Co-authored-by: Xiangwei Wei <526213833@qq.com>
Co-authored-by: qiaojialin <646274302@qq.com>
244 files changed:
antlr/src/main/antlr4/org/apache/iotdb/db/qp/strategy/SqlBase.g4 [changed mode: 0644->0755]
docs/UserGuide/Concept/Data Model and Terminology.md
docs/zh/UserGuide/Concept/Data Model and Terminology.md
example/flink/src/main/java/org/apache/iotdb/flink/FlinkTsFileBatchSink.java
example/flink/src/main/java/org/apache/iotdb/flink/FlinkTsFileBatchSource.java
example/flink/src/main/java/org/apache/iotdb/flink/FlinkTsFileStreamSink.java
example/flink/src/main/java/org/apache/iotdb/flink/FlinkTsFileStreamSource.java
example/tsfile/src/main/java/org/apache/iotdb/tsfile/TsFileRead.java
flink-iotdb-connector/src/main/java/org/apache/iotdb/flink/IoTDBSink.java
flink-tsfile-connector/src/main/java/org/apache/iotdb/flink/tsfile/RowTSRecordConverter.java
flink-tsfile-connector/src/test/java/org/apache/iotdb/flink/tsfile/RowTsFileConnectorTestBase.java
hadoop/src/main/java/org/apache/iotdb/hadoop/fileSystem/HDFSConfUtil.java
hadoop/src/main/java/org/apache/iotdb/hadoop/tsfile/TSFRecordReader.java
server/src/main/java/org/apache/iotdb/db/auth/AuthorityChecker.java
server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java
server/src/main/java/org/apache/iotdb/db/engine/StorageEngine.java
server/src/main/java/org/apache/iotdb/db/engine/memtable/AbstractMemTable.java
server/src/main/java/org/apache/iotdb/db/engine/merge/manage/MergeContext.java
server/src/main/java/org/apache/iotdb/db/engine/merge/manage/MergeResource.java
server/src/main/java/org/apache/iotdb/db/engine/merge/recover/LogAnalyzer.java
server/src/main/java/org/apache/iotdb/db/engine/merge/recover/MergeLogger.java
server/src/main/java/org/apache/iotdb/db/engine/merge/selector/IMergePathSelector.java
server/src/main/java/org/apache/iotdb/db/engine/merge/selector/NaivePathSelector.java
server/src/main/java/org/apache/iotdb/db/engine/merge/task/MergeFileTask.java
server/src/main/java/org/apache/iotdb/db/engine/merge/task/MergeMultiChunkTask.java
server/src/main/java/org/apache/iotdb/db/engine/merge/task/MergeTask.java
server/src/main/java/org/apache/iotdb/db/engine/merge/task/RecoverMergeTask.java
server/src/main/java/org/apache/iotdb/db/engine/modification/Deletion.java
server/src/main/java/org/apache/iotdb/db/engine/modification/Modification.java
server/src/main/java/org/apache/iotdb/db/engine/modification/ModificationFile.java
server/src/main/java/org/apache/iotdb/db/engine/modification/io/LocalTextModificationAccessor.java
server/src/main/java/org/apache/iotdb/db/engine/querycontext/QueryDataSource.java
server/src/main/java/org/apache/iotdb/db/engine/storagegroup/StorageGroupProcessor.java
server/src/main/java/org/apache/iotdb/db/engine/storagegroup/TsFileProcessor.java
server/src/main/java/org/apache/iotdb/db/engine/storagegroup/TsFileResource.java
server/src/main/java/org/apache/iotdb/db/metadata/MManager.java
server/src/main/java/org/apache/iotdb/db/metadata/MTree.java
server/src/main/java/org/apache/iotdb/db/metadata/MetaUtils.java
server/src/main/java/org/apache/iotdb/db/metadata/PartialPath.java [new file with mode: 0755]
server/src/main/java/org/apache/iotdb/db/metadata/mnode/MNode.java
server/src/main/java/org/apache/iotdb/db/monitor/MonitorConstants.java
server/src/main/java/org/apache/iotdb/db/monitor/StatMonitor.java
server/src/main/java/org/apache/iotdb/db/mqtt/PublishHandler.java
server/src/main/java/org/apache/iotdb/db/qp/Planner.java
server/src/main/java/org/apache/iotdb/db/qp/constant/SQLConstant.java
server/src/main/java/org/apache/iotdb/db/qp/executor/IPlanExecutor.java
server/src/main/java/org/apache/iotdb/db/qp/executor/PlanExecutor.java
server/src/main/java/org/apache/iotdb/db/qp/logical/crud/BasicFunctionOperator.java
server/src/main/java/org/apache/iotdb/db/qp/logical/crud/FilterOperator.java
server/src/main/java/org/apache/iotdb/db/qp/logical/crud/FromOperator.java
server/src/main/java/org/apache/iotdb/db/qp/logical/crud/InOperator.java
server/src/main/java/org/apache/iotdb/db/qp/logical/crud/SFWOperator.java
server/src/main/java/org/apache/iotdb/db/qp/logical/crud/SelectOperator.java
server/src/main/java/org/apache/iotdb/db/qp/logical/sys/AlterTimeSeriesOperator.java
server/src/main/java/org/apache/iotdb/db/qp/logical/sys/AuthorOperator.java
server/src/main/java/org/apache/iotdb/db/qp/logical/sys/CountOperator.java
server/src/main/java/org/apache/iotdb/db/qp/logical/sys/CreateTimeSeriesOperator.java
server/src/main/java/org/apache/iotdb/db/qp/logical/sys/DeletePartitionOperator.java
server/src/main/java/org/apache/iotdb/db/qp/logical/sys/DeleteStorageGroupOperator.java
server/src/main/java/org/apache/iotdb/db/qp/logical/sys/DeleteTimeSeriesOperator.java
server/src/main/java/org/apache/iotdb/db/qp/logical/sys/FlushOperator.java
server/src/main/java/org/apache/iotdb/db/qp/logical/sys/SetStorageGroupOperator.java
server/src/main/java/org/apache/iotdb/db/qp/logical/sys/SetTTLOperator.java
server/src/main/java/org/apache/iotdb/db/qp/logical/sys/ShowChildPathsOperator.java
server/src/main/java/org/apache/iotdb/db/qp/logical/sys/ShowDevicesOperator.java
server/src/main/java/org/apache/iotdb/db/qp/logical/sys/ShowTTLOperator.java
server/src/main/java/org/apache/iotdb/db/qp/logical/sys/ShowTimeSeriesOperator.java
server/src/main/java/org/apache/iotdb/db/qp/physical/PhysicalPlan.java
server/src/main/java/org/apache/iotdb/db/qp/physical/crud/AlignByDevicePlan.java
server/src/main/java/org/apache/iotdb/db/qp/physical/crud/DeletePartitionPlan.java
server/src/main/java/org/apache/iotdb/db/qp/physical/crud/DeletePlan.java
server/src/main/java/org/apache/iotdb/db/qp/physical/crud/InsertPlan.java
server/src/main/java/org/apache/iotdb/db/qp/physical/crud/InsertRowPlan.java
server/src/main/java/org/apache/iotdb/db/qp/physical/crud/InsertTabletPlan.java
server/src/main/java/org/apache/iotdb/db/qp/physical/crud/QueryPlan.java
server/src/main/java/org/apache/iotdb/db/qp/physical/crud/RawDataQueryPlan.java
server/src/main/java/org/apache/iotdb/db/qp/physical/crud/UpdatePlan.java
server/src/main/java/org/apache/iotdb/db/qp/physical/sys/AlterTimeSeriesPlan.java
server/src/main/java/org/apache/iotdb/db/qp/physical/sys/AuthorPlan.java
server/src/main/java/org/apache/iotdb/db/qp/physical/sys/ClearCachePlan.java
server/src/main/java/org/apache/iotdb/db/qp/physical/sys/CountPlan.java
server/src/main/java/org/apache/iotdb/db/qp/physical/sys/CreateSnapshotPlan.java
server/src/main/java/org/apache/iotdb/db/qp/physical/sys/CreateTimeSeriesPlan.java
server/src/main/java/org/apache/iotdb/db/qp/physical/sys/DataAuthPlan.java
server/src/main/java/org/apache/iotdb/db/qp/physical/sys/DeleteStorageGroupPlan.java
server/src/main/java/org/apache/iotdb/db/qp/physical/sys/DeleteTimeSeriesPlan.java
server/src/main/java/org/apache/iotdb/db/qp/physical/sys/FlushPlan.java
server/src/main/java/org/apache/iotdb/db/qp/physical/sys/LoadConfigurationPlan.java
server/src/main/java/org/apache/iotdb/db/qp/physical/sys/LoadDataPlan.java
server/src/main/java/org/apache/iotdb/db/qp/physical/sys/MergePlan.java
server/src/main/java/org/apache/iotdb/db/qp/physical/sys/OperateFilePlan.java
server/src/main/java/org/apache/iotdb/db/qp/physical/sys/SetStorageGroupPlan.java
server/src/main/java/org/apache/iotdb/db/qp/physical/sys/SetTTLPlan.java
server/src/main/java/org/apache/iotdb/db/qp/physical/sys/ShowChildPathsPlan.java
server/src/main/java/org/apache/iotdb/db/qp/physical/sys/ShowDevicesPlan.java
server/src/main/java/org/apache/iotdb/db/qp/physical/sys/ShowPlan.java
server/src/main/java/org/apache/iotdb/db/qp/physical/sys/ShowTTLPlan.java
server/src/main/java/org/apache/iotdb/db/qp/physical/sys/ShowTimeSeriesPlan.java
server/src/main/java/org/apache/iotdb/db/qp/physical/sys/TracingPlan.java
server/src/main/java/org/apache/iotdb/db/qp/strategy/LogicalGenerator.java
server/src/main/java/org/apache/iotdb/db/qp/strategy/PhysicalGenerator.java
server/src/main/java/org/apache/iotdb/db/qp/strategy/optimizer/ConcatPathOptimizer.java
server/src/main/java/org/apache/iotdb/db/qp/strategy/optimizer/MergeSingleFilterOptimizer.java
server/src/main/java/org/apache/iotdb/db/query/control/QueryResourceManager.java
server/src/main/java/org/apache/iotdb/db/query/dataset/AlignByDeviceDataSet.java
server/src/main/java/org/apache/iotdb/db/query/dataset/ListDataSet.java
server/src/main/java/org/apache/iotdb/db/query/dataset/NonAlignEngineDataSet.java
server/src/main/java/org/apache/iotdb/db/query/dataset/RawQueryDataSetWithValueFilter.java
server/src/main/java/org/apache/iotdb/db/query/dataset/RawQueryDataSetWithoutValueFilter.java
server/src/main/java/org/apache/iotdb/db/query/dataset/ShowTimeseriesDataSet.java
server/src/main/java/org/apache/iotdb/db/query/dataset/SingleDataSet.java
server/src/main/java/org/apache/iotdb/db/query/dataset/groupby/GroupByEngineDataSet.java
server/src/main/java/org/apache/iotdb/db/query/dataset/groupby/GroupByFillDataSet.java
server/src/main/java/org/apache/iotdb/db/query/dataset/groupby/GroupByTimeDataSet.java
server/src/main/java/org/apache/iotdb/db/query/dataset/groupby/GroupByWithValueFilterDataSet.java
server/src/main/java/org/apache/iotdb/db/query/dataset/groupby/GroupByWithoutValueFilterDataSet.java
server/src/main/java/org/apache/iotdb/db/query/dataset/groupby/LocalGroupByExecutor.java
server/src/main/java/org/apache/iotdb/db/query/executor/AggregationExecutor.java
server/src/main/java/org/apache/iotdb/db/query/executor/FillQueryExecutor.java
server/src/main/java/org/apache/iotdb/db/query/executor/LastQueryExecutor.java
server/src/main/java/org/apache/iotdb/db/query/executor/QueryRouter.java
server/src/main/java/org/apache/iotdb/db/query/executor/RawDataQueryExecutor.java
server/src/main/java/org/apache/iotdb/db/query/executor/fill/IFill.java
server/src/main/java/org/apache/iotdb/db/query/executor/fill/LastPointReader.java
server/src/main/java/org/apache/iotdb/db/query/executor/fill/LinearFill.java
server/src/main/java/org/apache/iotdb/db/query/executor/fill/PreviousFill.java
server/src/main/java/org/apache/iotdb/db/query/reader/chunk/metadata/DiskChunkMetadataLoader.java
server/src/main/java/org/apache/iotdb/db/query/reader/chunk/metadata/MemChunkMetadataLoader.java
server/src/main/java/org/apache/iotdb/db/query/reader/series/SeriesAggregateReader.java
server/src/main/java/org/apache/iotdb/db/query/reader/series/SeriesRawDataBatchReader.java
server/src/main/java/org/apache/iotdb/db/query/reader/series/SeriesReader.java
server/src/main/java/org/apache/iotdb/db/query/reader/series/SeriesReaderByTimestamp.java
server/src/main/java/org/apache/iotdb/db/query/timegenerator/ServerTimeGenerator.java
server/src/main/java/org/apache/iotdb/db/rescon/CachedStringPool.java [new file with mode: 0644]
server/src/main/java/org/apache/iotdb/db/service/TSServiceImpl.java
server/src/main/java/org/apache/iotdb/db/sync/receiver/load/FileLoader.java
server/src/main/java/org/apache/iotdb/db/tools/IoTDBDataDirViewer.java
server/src/main/java/org/apache/iotdb/db/tools/TsFileResourcePrinter.java
server/src/main/java/org/apache/iotdb/db/utils/FileLoaderUtils.java
server/src/main/java/org/apache/iotdb/db/utils/FilePathUtils.java
server/src/main/java/org/apache/iotdb/db/utils/MergeUtils.java
server/src/main/java/org/apache/iotdb/db/utils/QueryUtils.java
server/src/main/java/org/apache/iotdb/db/utils/SchemaUtils.java
server/src/main/java/org/apache/iotdb/db/utils/SerializeUtils.java
server/src/main/java/org/apache/iotdb/db/utils/TypeInferenceUtils.java
server/src/main/java/org/apache/iotdb/db/utils/UpgradeUtils.java
server/src/main/java/org/apache/iotdb/db/writelog/io/BatchLogReader.java
server/src/main/java/org/apache/iotdb/db/writelog/recover/LogReplayer.java
server/src/test/java/org/apache/iotdb/db/constant/TestConstant.java
server/src/test/java/org/apache/iotdb/db/engine/MetadataManagerHelper.java
server/src/test/java/org/apache/iotdb/db/engine/cache/ChunkMetadataCacheTest.java
server/src/test/java/org/apache/iotdb/db/engine/merge/MergeLogTest.java
server/src/test/java/org/apache/iotdb/db/engine/merge/MergeOverLapTest.java
server/src/test/java/org/apache/iotdb/db/engine/merge/MergeTaskTest.java
server/src/test/java/org/apache/iotdb/db/engine/merge/MergeTest.java
server/src/test/java/org/apache/iotdb/db/engine/modification/DeletionFileNodeTest.java
server/src/test/java/org/apache/iotdb/db/engine/modification/DeletionQueryTest.java
server/src/test/java/org/apache/iotdb/db/engine/modification/ModificationFileTest.java
server/src/test/java/org/apache/iotdb/db/engine/modification/io/LocalTextModificationAccessorTest.java
server/src/test/java/org/apache/iotdb/db/engine/storagegroup/FileNodeManagerBenchmark.java
server/src/test/java/org/apache/iotdb/db/engine/storagegroup/StorageGroupProcessorTest.java
server/src/test/java/org/apache/iotdb/db/engine/storagegroup/TTLTest.java
server/src/test/java/org/apache/iotdb/db/engine/storagegroup/TsFileProcessorEnableVmTest.java
server/src/test/java/org/apache/iotdb/db/engine/storagegroup/TsFileProcessorTest.java
server/src/test/java/org/apache/iotdb/db/integration/IoTDBAlignByDeviceIT.java
server/src/test/java/org/apache/iotdb/db/integration/IoTDBDaemonIT.java
server/src/test/java/org/apache/iotdb/db/integration/IoTDBEngineTimeGeneratorIT.java
server/src/test/java/org/apache/iotdb/db/integration/IoTDBLargeDataIT.java
server/src/test/java/org/apache/iotdb/db/integration/IoTDBLastIT.java
server/src/test/java/org/apache/iotdb/db/integration/IoTDBLoadExternalTsfileIT.java
server/src/test/java/org/apache/iotdb/db/integration/IoTDBMultiSeriesIT.java
server/src/test/java/org/apache/iotdb/db/integration/IoTDBQuotedPathIT.java
server/src/test/java/org/apache/iotdb/db/integration/IoTDBRemovePartitionIT.java
server/src/test/java/org/apache/iotdb/db/integration/IoTDBSequenceDataQueryIT.java
server/src/test/java/org/apache/iotdb/db/integration/IoTDBSeriesReaderIT.java
server/src/test/java/org/apache/iotdb/db/integration/IoTDBSimpleQueryIT.java
server/src/test/java/org/apache/iotdb/db/metadata/MManagerAdvancedTest.java
server/src/test/java/org/apache/iotdb/db/metadata/MManagerBasicTest.java
server/src/test/java/org/apache/iotdb/db/metadata/MManagerImproveTest.java
server/src/test/java/org/apache/iotdb/db/metadata/MTreeTest.java
server/src/test/java/org/apache/iotdb/db/metadata/MetaUtilsTest.java [new file with mode: 0644]
server/src/test/java/org/apache/iotdb/db/metadata/PartialPathTest.java [new file with mode: 0644]
server/src/test/java/org/apache/iotdb/db/qp/PlannerTest.java
server/src/test/java/org/apache/iotdb/db/qp/other/TSPlanContextAuthorTest.java
server/src/test/java/org/apache/iotdb/db/qp/plan/ConcatOptimizerTest.java
server/src/test/java/org/apache/iotdb/db/qp/plan/LogicalPlanSmallTest.java
server/src/test/java/org/apache/iotdb/db/qp/plan/PhysicalPlanTest.java
server/src/test/java/org/apache/iotdb/db/qp/plan/SerializationTest.java
server/src/test/java/org/apache/iotdb/db/query/reader/series/SeriesAggregateReaderTest.java
server/src/test/java/org/apache/iotdb/db/query/reader/series/SeriesReaderByTimestampTest.java
server/src/test/java/org/apache/iotdb/db/query/reader/series/SeriesReaderTest.java
server/src/test/java/org/apache/iotdb/db/query/reader/series/SeriesReaderTestUtil.java
server/src/test/java/org/apache/iotdb/db/sql/CheckPathValidityTest.java
server/src/test/java/org/apache/iotdb/db/sync/receiver/load/FileLoaderTest.java
server/src/test/java/org/apache/iotdb/db/sync/receiver/recover/SyncReceiverLogAnalyzerTest.java
server/src/test/java/org/apache/iotdb/db/sync/sender/manage/SyncFileManagerTest.java
server/src/test/java/org/apache/iotdb/db/sync/sender/recover/SyncSenderLogAnalyzerTest.java
server/src/test/java/org/apache/iotdb/db/tools/IoTDBWatermarkTest.java
server/src/test/java/org/apache/iotdb/db/tools/WalCheckerTest.java
server/src/test/java/org/apache/iotdb/db/utils/TypeInferenceUtilsTest.java
server/src/test/java/org/apache/iotdb/db/writelog/PerformanceTest.java
server/src/test/java/org/apache/iotdb/db/writelog/WriteLogNodeManagerTest.java
server/src/test/java/org/apache/iotdb/db/writelog/WriteLogNodeTest.java
server/src/test/java/org/apache/iotdb/db/writelog/io/LogWriterReaderTest.java
server/src/test/java/org/apache/iotdb/db/writelog/io/MultiFileLogReaderTest.java
server/src/test/java/org/apache/iotdb/db/writelog/recover/DeviceStringTest.java
server/src/test/java/org/apache/iotdb/db/writelog/recover/LogReplayerTest.java
server/src/test/java/org/apache/iotdb/db/writelog/recover/RecoverResourceFromReaderTest.java
server/src/test/java/org/apache/iotdb/db/writelog/recover/SeqTsFileRecoverTest.java
server/src/test/java/org/apache/iotdb/db/writelog/recover/UnseqTsFileRecoverTest.java
session/src/test/java/org/apache/iotdb/session/IoTDBSessionIT.java
spark-tsfile/src/main/scala/org/apache/iotdb/spark/tsfile/DefaultSource.scala
spark-tsfile/src/main/scala/org/apache/iotdb/spark/tsfile/NarrowConverter.scala
spark-tsfile/src/main/scala/org/apache/iotdb/spark/tsfile/WideConverter.scala
tsfile/src/main/java/org/apache/iotdb/tsfile/common/constant/TsFileConstant.java
tsfile/src/main/java/org/apache/iotdb/tsfile/read/common/Path.java
tsfile/src/test/java/org/apache/iotdb/tsfile/read/ReadInPartitionTest.java
tsfile/src/test/java/org/apache/iotdb/tsfile/read/ReadOnlyTsFileTest.java
tsfile/src/test/java/org/apache/iotdb/tsfile/read/ReadTest.java
tsfile/src/test/java/org/apache/iotdb/tsfile/read/TimePlainEncodeReadTest.java
tsfile/src/test/java/org/apache/iotdb/tsfile/read/common/PathTest.java
tsfile/src/test/java/org/apache/iotdb/tsfile/read/controller/ChunkLoaderTest.java
tsfile/src/test/java/org/apache/iotdb/tsfile/read/controller/IMetadataQuerierByFileImplTest.java
tsfile/src/test/java/org/apache/iotdb/tsfile/read/filter/IExpressionOptimizerTest.java
tsfile/src/test/java/org/apache/iotdb/tsfile/read/query/executor/QueryExecutorTest.java
tsfile/src/test/java/org/apache/iotdb/tsfile/read/query/timegenerator/ReadWriteTest.java
tsfile/src/test/java/org/apache/iotdb/tsfile/read/query/timegenerator/ReaderByTimestampTest.java
tsfile/src/test/java/org/apache/iotdb/tsfile/read/query/timegenerator/TimeGeneratorReadEmptyTest.java
tsfile/src/test/java/org/apache/iotdb/tsfile/read/query/timegenerator/TimeGeneratorReadWriteTest.java
tsfile/src/test/java/org/apache/iotdb/tsfile/read/query/timegenerator/TimeGeneratorTest.java
tsfile/src/test/java/org/apache/iotdb/tsfile/read/query/timegenerator/TsFileGeneratorForSeriesReaderByTimestamp.java
tsfile/src/test/java/org/apache/iotdb/tsfile/read/reader/FakedTimeGenerator.java
tsfile/src/test/java/org/apache/iotdb/tsfile/read/reader/ReaderTest.java
tsfile/src/test/java/org/apache/iotdb/tsfile/utils/FileGenerator.java
tsfile/src/test/java/org/apache/iotdb/tsfile/utils/RecordUtilsTest.java
tsfile/src/test/java/org/apache/iotdb/tsfile/utils/StringContainerTest.java
tsfile/src/test/java/org/apache/iotdb/tsfile/utils/TsFileGeneratorForTest.java
tsfile/src/test/java/org/apache/iotdb/tsfile/write/PerfTest.java
tsfile/src/test/java/org/apache/iotdb/tsfile/write/ReadPageInMemTest.java
tsfile/src/test/java/org/apache/iotdb/tsfile/write/SameMeasurementsWithDifferentDataTypesTest.java
tsfile/src/test/java/org/apache/iotdb/tsfile/write/TsFileReadWriteTest.java
tsfile/src/test/java/org/apache/iotdb/tsfile/write/TsFileWriterTest.java
tsfile/src/test/java/org/apache/iotdb/tsfile/write/writer/ForceAppendTsFileWriterTest.java
tsfile/src/test/java/org/apache/iotdb/tsfile/write/writer/RestorableTsFileIOWriterTest.java