Skip to content

Commit 7081f7f

Browse files
achulkov2robot-piglet
authored andcommitted
Introduce enable_optimize_read_in_order in CHYT
This PR introduces a new mode in CHYT that aims to mimic the behaviour of [optimize_read_in_order](https://clickhouse.com/docs/en/sql-reference/statements/select/order-by#optimization-of-data-reading) in native ClickHouse. This PR implements #451, albeit using a different approach. It works by using a sorted pool to produce jobs of exponentially increasing/decreasing sizes, which turn into subqueries that are processed combined sequentially without additional sorting steps. This should allow queries described in #451 to execute without reading the whole table. Notable modifications with generic impact: * Support for exponentially increasing job sizes in new sorted pool and related classes. * Chunk slice fetcher is now used when creating a sorted pool in CHYT. * New column in query log table exporter. --- 1f9ea932d21d4b328b4be976eb39cdfbc631dffd Pull Request resolved: ytsaurus/ytsaurus#757
1 parent c24cb73 commit 7081f7f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

yt/yt/client/table_client/row_base.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,17 @@ inline bool IsIntegralType(ESimpleLogicalValueType type)
117117
}
118118
}
119119

120+
inline bool IsFloatingPointType(ESimpleLogicalValueType type)
121+
{
122+
switch (type) {
123+
case ESimpleLogicalValueType::Double:
124+
case ESimpleLogicalValueType::Float:
125+
return true;
126+
default:
127+
return false;
128+
}
129+
}
130+
120131
inline bool IsStringLikeType(ESimpleLogicalValueType type)
121132
{
122133
switch (type) {

0 commit comments

Comments
 (0)