shuwenwei commented on code in PR #14617:
URL: https://github.com/apache/iotdb/pull/14617#discussion_r2063063788


##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/operator/schema/source/TableDeviceQuerySource.java:
##########
@@ -283,4 +347,39 @@ public long getMaxMemory(final ISchemaRegion schemaRegion) 
{
                     : 0))
         : 
TSFileDescriptor.getInstance().getConfig().getMaxTsBlockSizeInBytes();
   }
+
+  private static class RleBinaryColumnBuilder extends BinaryColumnBuilder {
+
+    private final BinaryColumnBuilder innerBuilder;
+
+    public RleBinaryColumnBuilder(final BinaryColumnBuilder innerBuilder) {
+      super(null, 0);
+      this.innerBuilder = innerBuilder;
+    }
+
+    @Override
+    public int getPositionCount() {
+      return innerBuilder.getPositionCount();
+    }
+
+    @Override
+    public ColumnBuilder writeBinary(final Binary value) {
+      return innerBuilder.writeBinary(value);
+    }
+
+    @Override
+    public ColumnBuilder appendNull() {
+      return innerBuilder.appendNull();
+    }
+
+    @Override
+    public Column build() {
+      return new RunLengthEncodedColumn(innerBuilder.build(), 
getPositionCount());

Review Comment:
   The column generated by innerBuilder may cause an IllegalArgumentException.
   <img width="949" alt="截屏2025-04-28 15 38 23" 
src="https://github.com/user-attachments/assets/e44e5f46-5b0e-4814-899d-6296c0e8104b";
 />
   ![Uploading 截屏2025-04-28 15.40.00.png…]()
   



-- 
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]

Reply via email to