Skip to content

Conversation

@jt2594838
Copy link
Contributor

@jt2594838 jt2594838 commented Apr 24, 2025

Time consumption of reading a TsFile of 120MB with all floats:
5.3s -> 3.5s

@HTHou HTHou requested a review from Copilot April 24, 2025 08:05
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes a redundant conversion in TableResultSet to improve performance when reading TsFiles.

  • Refactors TableResultSet to directly access block data instead of converting through TimeValuePair.
  • Adds explicit accessor methods for various data types (int, long, double, float, boolean, date, binary, string).
  • Updates BinaryColumn isNull to include a direct null check on the values array.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
java/tsfile/src/main/java/org/apache/tsfile/read/query/dataset/TableResultSet.java Optimizes data retrieval by removing redundant conversion logic.
java/tsfile/src/main/java/org/apache/tsfile/read/common/block/column/BinaryColumn.java Modifies the isNull method to also check null status of the values array.

@HTHou HTHou merged commit b385b4f into develop Apr 25, 2025
10 of 11 checks passed
@HTHou HTHou deleted the optimize_table_result_set branch April 25, 2025 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants