You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ja...@apache.org on 2021/01/21 08:43:23 UTC

[iotdb] branch NewTsFileV2 updated (5972d02 -> 84cade9)

This is an automated email from the ASF dual-hosted git repository.

jackietien pushed a change to branch NewTsFileV2
in repository https://gitbox.apache.org/repos/asf/iotdb.git.


    from 5972d02  merge NewTsFile
     add b1e5c81  IOTDB-1111 load configuration -global command do not support (#2526)
     add 5837269  remove duplicated codes for error tips for query FILL,AGGREGATION, GROUPBYTIME sql  (#2525)
     add 58dfb2f  add executeRawDataQuery in SessionPool (#2522)
     add 3f544dc  [IOTDB-1113] Optimize the execution efficiency of UDF (#2511)
     add 060f4fc  Replace TreeSet with TimeSelector (heap-based) for better raw query performance (#2495)
     add cf9b35d  [IOTDB-1081] New TsFile Format (V3) (#2184)
     add 5c438bf  Add the user guide for upgrading v0.11/0.10 to v0.12 (#2531)
     add 7a393ef  fix some upgrade recover bugs (#2536)
     new 84cade9  merge maste

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.


Summary of changes:
 cluster/pom.xml                                    |  16 ++
 .../cluster/query/ClusterPhysicalGenerator.java    |  15 +-
 .../iotdb/cluster/query/LoadConfigurationTest.java | 122 ++++++++++++
 docs/Download/README.md                            |  17 +-
 docs/zh/Download/README.md                         |  14 +-
 .../resources/conf/iotdb-engine.properties         |   2 +-
 .../java/org/apache/iotdb/db/conf/IoTDBConfig.java |   2 +-
 .../org/apache/iotdb/db/conf/IoTDBConfigCheck.java |   6 +-
 .../org/apache/iotdb/db/conf/IoTDBDescriptor.java  |   4 +
 .../iotdb/db/engine/upgrade/UpgradeTask.java       |   5 +-
 .../iotdb/db/query/control/QueryTimeManager.java   |  10 +-
 .../dataset/RawQueryDataSetWithValueFilter.java    |  68 ++++++-
 .../dataset/RawQueryDataSetWithoutValueFilter.java | 107 +++++-----
 .../IntList.java => dataset/UDFInputDataSet.java}  |  66 +++----
 .../db/query/dataset/UDTFAlignByTimeDataSet.java   |   6 +-
 .../iotdb/db/query/udf/core/access/RowImpl.java    |  23 ++-
 .../iotdb/db/query/udf/core/input/InputLayer.java  | 120 ++++++------
 .../iotdb/db/query/udf/core/input/SafetyLine.java  |  40 ++--
 .../iotdb/db/query/udf/datastructure/Cache.java    |  99 ++++++++++
 .../primitive/ElasticSerializableIntList.java      |  25 +--
 .../row/ElasticSerializableRowRecordList.java      |  69 ++++---
 .../row/SerializableRowRecordList.java             |  98 ++++------
 .../tv/ElasticSerializableTVList.java              |  28 ++-
 .../org/apache/iotdb/db/service/TSServiceImpl.java |  12 +-
 .../org/apache/iotdb/db/utils/UpgradeUtils.java    |  20 +-
 .../iotdb/db/utils/datastructure/TimeSelector.java | 155 +++++++++++++++
 .../iotdb/db/integration/IoTDBDisableAlignIT.java  |   6 +-
 .../ElasticSerializableRowRecordListTest.java      |  61 +++---
 .../iotdb/db/query/udf/datastructure/LRUCache.java |  59 ++++++
 .../db/query/udf/datastructure/LRUCacheTest.java   | 115 +++++++++++
 .../udf/datastructure/SerializableListTest.java    |   2 +
 .../SerializableRowRecordListTest.java             |  49 ++++-
 .../db/utils/datastructure/TimeSelectorTest.java   | 217 +++++++++++++++++++++
 .../org/apache/iotdb/session/pool/SessionPool.java |  22 +++
 .../apache/iotdb/session/pool/SessionPoolTest.java |  33 +++-
 .../tsfile/file/metadata/TimeseriesMetadata.java   |   8 +-
 36 files changed, 1337 insertions(+), 384 deletions(-)
 create mode 100644 cluster/src/test/java/org/apache/iotdb/cluster/query/LoadConfigurationTest.java
 copy server/src/main/java/org/apache/iotdb/db/query/{udf/datastructure/primitive/IntList.java => dataset/UDFInputDataSet.java} (73%)
 create mode 100644 server/src/main/java/org/apache/iotdb/db/query/udf/datastructure/Cache.java
 create mode 100644 server/src/main/java/org/apache/iotdb/db/utils/datastructure/TimeSelector.java
 create mode 100644 server/src/test/java/org/apache/iotdb/db/query/udf/datastructure/LRUCache.java
 create mode 100644 server/src/test/java/org/apache/iotdb/db/query/udf/datastructure/LRUCacheTest.java
 create mode 100644 server/src/test/java/org/apache/iotdb/db/utils/datastructure/TimeSelectorTest.java


[iotdb] 01/01: merge maste

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jackietien pushed a commit to branch NewTsFileV2
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 84cade9e2f6bff89ed445aea1f5319a707e4f538
Merge: 5972d02 7a393ef
Author: JackieTien97 <Ja...@foxmail.com>
AuthorDate: Thu Jan 21 16:42:39 2021 +0800

    merge maste

 cluster/pom.xml                                    |  16 ++
 .../cluster/query/ClusterPhysicalGenerator.java    |  15 +-
 .../iotdb/cluster/query/LoadConfigurationTest.java | 122 ++++++++++++
 docs/Download/README.md                            |  17 +-
 docs/zh/Download/README.md                         |  14 +-
 .../resources/conf/iotdb-engine.properties         |   2 +-
 .../java/org/apache/iotdb/db/conf/IoTDBConfig.java |   2 +-
 .../org/apache/iotdb/db/conf/IoTDBConfigCheck.java |   6 +-
 .../org/apache/iotdb/db/conf/IoTDBDescriptor.java  |   4 +
 .../iotdb/db/engine/upgrade/UpgradeTask.java       |   5 +-
 .../iotdb/db/query/control/QueryTimeManager.java   |  10 +-
 .../dataset/RawQueryDataSetWithValueFilter.java    |  68 ++++++-
 .../dataset/RawQueryDataSetWithoutValueFilter.java | 107 +++++-----
 .../iotdb/db/query/dataset/UDFInputDataSet.java}   |  73 ++++---
 .../db/query/dataset/UDTFAlignByTimeDataSet.java   |   6 +-
 .../iotdb/db/query/udf/core/access/RowImpl.java    |  23 ++-
 .../iotdb/db/query/udf/core/input/InputLayer.java  | 120 ++++++------
 .../iotdb/db/query/udf/core/input/SafetyLine.java  |  40 ++--
 .../iotdb/db/query/udf/datastructure/Cache.java    |  99 ++++++++++
 .../primitive/ElasticSerializableIntList.java      |  25 +--
 .../row/ElasticSerializableRowRecordList.java      |  69 ++++---
 .../row/SerializableRowRecordList.java             |  98 ++++------
 .../tv/ElasticSerializableTVList.java              |  28 ++-
 .../org/apache/iotdb/db/service/TSServiceImpl.java |  12 +-
 .../org/apache/iotdb/db/utils/UpgradeUtils.java    |  20 +-
 .../iotdb/db/utils/datastructure/TimeSelector.java | 155 +++++++++++++++
 .../iotdb/db/integration/IoTDBDisableAlignIT.java  |   6 +-
 .../ElasticSerializableRowRecordListTest.java      |  61 +++---
 .../iotdb/db/query/udf/datastructure/LRUCache.java |  59 ++++++
 .../db/query/udf/datastructure/LRUCacheTest.java   | 115 +++++++++++
 .../udf/datastructure/SerializableListTest.java    |   2 +
 .../SerializableRowRecordListTest.java             |  49 ++++-
 .../db/utils/datastructure/TimeSelectorTest.java   | 217 +++++++++++++++++++++
 .../org/apache/iotdb/session/pool/SessionPool.java |  22 +++
 .../apache/iotdb/session/pool/SessionPoolTest.java |  33 +++-
 .../tsfile/file/metadata/TimeseriesMetadata.java   |   8 +-
 36 files changed, 1337 insertions(+), 391 deletions(-)

diff --cc server/src/main/java/org/apache/iotdb/db/engine/upgrade/UpgradeTask.java
index deb8e27,3a977df..8b31642
--- a/server/src/main/java/org/apache/iotdb/db/engine/upgrade/UpgradeTask.java
+++ b/server/src/main/java/org/apache/iotdb/db/engine/upgrade/UpgradeTask.java
@@@ -99,8 -99,9 +99,9 @@@ public class UpgradeTask extends Wrappe
      try {
        File upgradeFolder = upgradeResource.getTsFile().getParentFile();
        for (File tempPartitionDir : upgradeFolder.listFiles()) {
--        if (tempPartitionDir.isDirectory() && 
-             fsFactory.getFile(tempPartitionDir, upgradeResource.getTsFile().getName()).exists()) {
++        if (tempPartitionDir.isDirectory() &&
+             fsFactory.getFile(tempPartitionDir, upgradeResource.getTsFile().getName() 
+                 + TsFileResource.RESOURCE_SUFFIX).exists()) {
            TsFileResource resource = new TsFileResource(
                fsFactory.getFile(tempPartitionDir, upgradeResource.getTsFile().getName()));
            resource.deserialize();
diff --cc server/src/main/java/org/apache/iotdb/db/utils/UpgradeUtils.java
index e16a118,da9bddd..44242fb
--- a/server/src/main/java/org/apache/iotdb/db/utils/UpgradeUtils.java
+++ b/server/src/main/java/org/apache/iotdb/db/utils/UpgradeUtils.java
@@@ -63,7 -63,7 +63,7 @@@ public class UpgradeUtils 
    /**
     * judge whether a tsfile needs to be upgraded
     */
--  public static boolean isNeedUpgrade(TsFileResource tsFileResource) {
++  public static boolean isNeedUpgrade(TsFileResource tsFileResource) throws Exception {
      tsFileResource.readLock();
      //case the TsFile's length is equal to 0, the TsFile does not need to be upgraded
      try {
diff --cc tsfile/src/main/java/org/apache/iotdb/tsfile/file/metadata/TimeseriesMetadata.java
index e961a3a,4f93f17..7882288
--- a/tsfile/src/main/java/org/apache/iotdb/tsfile/file/metadata/TimeseriesMetadata.java
+++ b/tsfile/src/main/java/org/apache/iotdb/tsfile/file/metadata/TimeseriesMetadata.java
@@@ -35,16 -33,8 +35,12 @@@ import org.apache.iotdb.tsfile.utils.Re
  public class TimeseriesMetadata implements Accountable {
  
    /**
 +   * used for old version tsfile
 +   */
-   @Deprecated
 +  private long startOffsetOfChunkMetaDataList;
- 
- 
 +  /**
-    * 0 means this time series has only one chunk, no need to save the statistic again in chunk
-    * metadata 1 means this time series has more than one chunk, should save the statistic again in
-    * chunk metadata
+    * 0 means this time series has only one chunk, no need to save the statistic again in chunk metadata
+    * 1 means this time series has more than one chunk, should save the statistic again in chunk metadata
     */
    private byte timeSeriesMetadataType;