This is an automated email from the ASF dual-hosted git repository.
mrhhsg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 153bba0f5cf [fix](be) Preserve rows in partial row-store point queries
(#71292)
153bba0f5cf is described below
commit 153bba0f5cfdb3ecfcc4e69c0babc3c5ad981916
Author: Jerry Hu <[email protected]>
AuthorDate: Thu Dec 3 15:42:17 2026 +0800
[fix](be) Preserve rows in partial row-store point queries (#71292)
### Background
Short-circuit point queries locate a row by its primary key and assemble
a scan-tuple block. With partial row storage, JSONB supplies the
configured row-store columns and column storage supplies other required
values. The scan tuple can also contain predicate-only slots that are
not part of the output.
### What problem does this PR solve?
Issue Number: None
Related PR: #34089 (introduced partial row storage and the padding
condition)
PR Type: Bugfix
Problem Summary:
A partial-row-store table can return no rows when a point query projects
only a non-key column, even though the key exists. Align unread scan
slots after each successful row read and bypass incomplete row-cache
payloads while keeping the short-circuit path. Most of the diff adds
coverage for alignment and cache behavior.
For a Unique Key MOW table with key `k`, `row_store_columns="v,z,w"`,
and an existing row whose `k=7` and `v='seven'`:
```sql
SELECT v FROM short_circuit_partial_rowstore_projection WHERE k = 7;
SELECT k, v FROM short_circuit_partial_rowstore_projection WHERE k = 7;
```
| Query | Before | After |
|---|---|---|
| `SELECT v` | No rows | `seven` |
| `SELECT k, v` | `7, seven` | `7, seven` |
### Details
- **Frequency:** Always for the reproduced narrow projection with
short-circuit column-store access enabled and equal-sized scan-tuple and
configured row-store column sets.
- **Root cause:** The executor compared sizes from different column
domains to decide whether to pad unread slots. An unread leading key
slot could stay empty, so `Block::rows()` reported zero. Batch-end
padding also leaves the leading-column row count stale for subsequent
JSONB decoding.
- **Why existing tests missed it:** Unit tests in
`PointQuerySegmentReuseTest` covered full-row storage. The partial-row
case in the `test_rowstore` regression projected all columns, including
the key. Neither exercised an unread leading key with equal-sized column
sets.
- **Fix:** Precompute scan slots read by neither storage path and append
one default per successfully read row before decoding the next key.
Required output columns and the delete sign still come from real storage
reads; missing keys do not acquire placeholder rows.
- **Other paths and branches:** Shared-nothing and cloud requests use
the same executor. Both segment-ID layouts were tested with local files,
not a live cloud deployment. Normal scans, FE eligibility, protocol and
storage formats are unchanged. Release branches were not validated.
- **Behavior change:** With `disable_storage_row_cache=false`,
partial-row requests bypass both cache lookup and insertion because
their cached payloads lack the row location needed for column-store
reads. They may incur extra physical reads. Full-row caching and
configuration defaults are unchanged; no performance benchmark was run.
### Testing
All runs below were local with ASAN:
- `./build.sh --be --fe -j 48`: passed, including FE Checkstyle.
- `./run-be-ut.sh --run --filter
'*PointQuerySegmentReuseTest*:*PointQueryRowIdReadTest*:*RowCacheTest*'
-j 48`: 13 passed. The new alignment test failed on unfixed code in both
layouts with leading-column size 0 instead of 1, then passed.
- Regression runner with an isolated configuration and `-d
point_query_p0`: selectors
`test_short_circuit_partial_rowstore_projection`, `test_rowstore`,
`test_short_circuit_project`,
`test_short_circuit_rowstore_nested_complex`, and
`test_point_query_light_schema_change` passed. Five invocations ran six
suites, with no failures or skips. The new regression failed before the
fix and passed against unchanged ordinary-scan expected output.
- Differential checks: 40 queries matched values and expected plans; 20
cache-toggle queries returned correct values and remained short circuit.
- `build-support/clang-format.sh` (v16),
`build-support/check-format.sh`, `build-support/check-build-hygiene.sh`,
and `git diff --check`: passed.
### Notes for Reviewers
Disabling only partial-cache insertion would leave older incomplete
entries reachable. Both cache entry points therefore require full-row
storage; cached partial values must not replace real key or delete-sign
reads. Existing mixed-delete-sign handling is unchanged.
### Release note
Fix missing rows in short-circuit point queries that project non-key
columns from partial row storage. When row caching is enabled,
partial-row point queries bypass incomplete cached payloads; full-row
caching remains available.
### Check List (For Author)
- Behavior changed: Yes (see Details)
- Does this need documentation: No
- Pre-submission status: Partially verified: targeted local validation
passed; full regression, live cloud, multi-BE and mixed-version
validation were not run.
### AI Disclosure
- Tool: Codex
- Generated: Implementation, tests and this description
- Human review: not stated
---
be/src/service/point_query_executor.cpp | 37 +++---
be/src/service/point_query_executor.h | 10 ++
be/test/service/point_query_exector_test.cpp | 144 +++++++++++++++++++--
...t_short_circuit_partial_rowstore_projection.out | 18 +++
...hort_circuit_partial_rowstore_projection.groovy | 57 ++++++++
5 files changed, 238 insertions(+), 28 deletions(-)
diff --git a/be/src/service/point_query_executor.cpp
b/be/src/service/point_query_executor.cpp
index b16de726306..e25dd6402fd 100644
--- a/be/src/service/point_query_executor.cpp
+++ b/be/src/service/point_query_executor.cpp
@@ -197,6 +197,17 @@ Status Reusable::init(const TDescriptorTable& t_desc_tbl,
const std::vector<TExp
}
get_missing_and_include_cids(schema, output_slot_descs,
_row_store_column_ids,
_missing_col_uids, _include_col_uids);
+ // An empty include set means JSONB decodes every slot only for full-row
storage.
+ // Otherwise, e.g. tuple [k, v, delete_sign] with row-store columns [v, z,
w], k is
+ // read by neither storage path even though the two collections have the
same size.
+ if (!has_full_row_store()) {
+ for (size_t i = 0; i < tuple_desc()->slots().size(); ++i) {
+ int uid = tuple_desc()->slots()[i]->col_unique_id();
+ if (!_include_col_uids.contains(uid) &&
!_missing_col_uids.contains(uid)) {
+ _unmaterialized_slot_indices.push_back(i);
+ }
+ }
+ }
return Status::OK();
}
@@ -514,9 +525,12 @@ Status PointQueryExecutor::_lookup_row_key() {
io_ctx.file_cache_stats = &_profile_metrics.read_stats.file_cache_stats;
io_ctx.remote_scan_cache_write_limiter =
_remote_scan_cache_write_limiter.get();
std::vector<std::unique_ptr<SegmentCacheHandle>>
segment_caches(specified_rowsets.size());
+ // A cached partial row (e.g. only v) has no row location for reading k or
the delete sign.
+ const bool use_row_cache =
+ !config::disable_storage_row_cache &&
_reusable->has_full_row_store();
for (size_t i = 0; i < _row_read_ctxs.size(); ++i) {
RowLocation location;
- if (!config::disable_storage_row_cache) {
+ if (use_row_cache) {
RowCache::CacheHandle cache_handle;
auto hit_cache = RowCache::instance()->lookup(
{_tablet->tablet_id(), _row_read_ctxs[i]._primary_key},
&cache_handle);
@@ -569,7 +583,9 @@ Status PointQueryExecutor::_lookup_row_data() {
std::string value;
// fill block by row store
if (_reusable->rs_column_uid() != -1) {
- bool use_row_cache = !config::disable_storage_row_cache;
+ // Match the lookup guard: partial payloads cannot satisfy
column-store reads.
+ const bool use_row_cache =
+ !config::disable_storage_row_cache &&
_reusable->has_full_row_store();
io::IOContext io_ctx;
io_ctx.reader_type = ReaderType::READER_QUERY;
io_ctx.file_cache_stats =
&_profile_metrics.read_stats.file_cache_stats;
@@ -651,19 +667,10 @@ Status PointQueryExecutor::_lookup_row_data() {
read_column, slot, row_ids, column,
storage_read_options, iter));
}
}
- }
- if (result_columns.size() > _reusable->include_col_uids().size()) {
- // Padding rows for some columns that no need to output to mysql
client
- // eg. SELECT k1,v1,v2 FROM TABLE WHERE k1 = 1, k1 is not in
output slots, tuple as bellow
- // TupleDescriptor{id=1, tbl=table_with_column_group}
- // SlotDescriptor{id=8, col=v1, colUniqueId=1 ...}
- // SlotDescriptor{id=9, col=v2, colUniqueId=2 ...}
- // thus missing in include_col_uids and missing_col_uids
- for (auto& column : result_columns) {
- int padding_rows = _row_hits - cast_set<int>(column->size());
- if (padding_rows > 0) {
- column->insert_many_defaults(padding_rows);
- }
+ // Keep every tuple slot aligned before the next key: JSONB
decoding uses the
+ // first column's size as the number of rows already materialized.
+ for (size_t pos : _reusable->unmaterialized_slot_indices()) {
+ result_columns[pos]->insert_default();
}
}
}
diff --git a/be/src/service/point_query_executor.h
b/be/src/service/point_query_executor.h
index 701a3030b42..eb6859e23a7 100644
--- a/be/src/service/point_query_executor.h
+++ b/be/src/service/point_query_executor.h
@@ -102,6 +102,14 @@ public:
const std::unordered_set<int32_t> include_col_uids() const { return
_include_col_uids; }
+ bool has_full_row_store() const {
+ return _row_store_column_ids != -1 && _include_col_uids.empty();
+ }
+
+ const std::vector<size_t>& unmaterialized_slot_indices() const {
+ return _unmaterialized_slot_indices;
+ }
+
RuntimeState* runtime_state() { return _runtime_state.get(); }
// delete sign idx in block
@@ -125,6 +133,8 @@ private:
std::unordered_set<int32_t> _missing_col_uids;
// included cids in rowstore(column group)
std::unordered_set<int32_t> _include_col_uids;
+ // Scan tuple slots read by neither row storage nor column storage.
+ std::vector<size_t> _unmaterialized_slot_indices;
// delete sign idx in block
int32_t _delete_sign_idx = -1;
};
diff --git a/be/test/service/point_query_exector_test.cpp
b/be/test/service/point_query_exector_test.cpp
index c737b6d84f7..9099f8bc5cb 100644
--- a/be/test/service/point_query_exector_test.cpp
+++ b/be/test/service/point_query_exector_test.cpp
@@ -22,6 +22,7 @@
#include <gtest/gtest.h>
#include <atomic>
+#include <unordered_set>
#include "cloud/cloud_storage_engine.h"
#include "cloud/cloud_tablet.h"
@@ -603,7 +604,7 @@ protected:
EXPECT_TRUE(io::global_local_filesystem()->delete_directory(kTestDir).ok());
}
- Status create_tablet() {
+ Status create_tablet(bool partial_row_store = false) {
TabletMetaPB meta_pb;
meta_pb.set_tablet_id(987654);
meta_pb.set_enable_unique_key_merge_on_write(true);
@@ -612,9 +613,14 @@ protected:
schema_pb->set_keys_type(UNIQUE_KEYS);
schema_pb->set_num_short_key_columns(1);
schema_pb->set_num_rows_per_row_block(1024);
- schema_pb->set_next_column_unique_id(5);
- schema_pb->set_delete_sign_idx(3);
+ schema_pb->set_next_column_unique_id(6);
+ schema_pb->set_delete_sign_idx(4);
schema_pb->set_store_row_column(true);
+ if (partial_row_store) {
+ for (int uid : {1, 2, 3}) {
+ schema_pb->add_row_store_column_unique_ids(uid);
+ }
+ }
auto add_column = [&](int uid, const std::string& name, const
std::string& type, int length,
bool nullable) {
auto* column = schema_pb->add_column();
@@ -630,8 +636,9 @@ protected:
add_column(0, "k", "INT", 4, false);
add_column(1, "v1", "INT", 4, false);
add_column(2, "v2", "INT", 4, true);
- add_column(3, DELETE_SIGN, "TINYINT", 1, false);
- add_column(4, BeConsts::ROW_STORE_COL, "STRING", 2147483643, false);
+ add_column(3, "v3", "INT", 4, false);
+ add_column(4, DELETE_SIGN, "TINYINT", 1, false);
+ add_column(5, BeConsts::ROW_STORE_COL, "STRING", 2147483643, false);
auto meta = std::make_shared<TabletMeta>();
meta->init_from_pb(meta_pb);
if (GetParam()) {
@@ -656,7 +663,8 @@ protected:
return Status::OK();
}
- Status write_rowset(int64_t version, const
std::vector<std::vector<int32_t>>& keys) {
+ Status write_rowset(int64_t version, const
std::vector<std::vector<int32_t>>& keys,
+ int8_t delete_sign = 0) {
RowsetWriterContext context;
context.rowset_id = _engine->next_rowset_id();
context.tablet_id = _tablet->tablet_id();
@@ -682,8 +690,9 @@ protected:
} else {
columns[2]->insert(Field::create_field<TYPE_INT>(key *
100));
}
- columns[3]->insert_default();
- columns[4]->insert_default();
+ columns[3]->insert(Field::create_field<TYPE_INT>(key *
1000));
+
columns[4]->insert(Field::create_field<TYPE_TINYINT>(delete_sign));
+ columns[5]->insert_default();
}
}
RETURN_IF_ERROR(writer.flush_single_block(&block));
@@ -712,13 +721,15 @@ protected:
return Status::OK();
}
- Status prepare_executor(PointQueryExecutor* executor, const
std::vector<int32_t>& keys) {
+ Status prepare_executor(PointQueryExecutor* executor, const
std::vector<int32_t>& keys,
+ const std::vector<int>& scan_positions = {0, 1, 2,
4},
+ const std::vector<int>& output_positions = {0, 1,
2}) {
TDescriptorTableBuilder descriptor_builder;
TTupleDescriptorBuilder tuple_builder;
- for (int pos = 0; pos < 4; ++pos) {
+ for (int pos : scan_positions) {
const auto& column = _tablet->tablet_schema()->column(pos);
auto slot = TSlotDescriptorBuilder()
- .type(pos == 3 ? TYPE_TINYINT : TYPE_INT)
+ .type(pos == 4 ? TYPE_TINYINT : TYPE_INT)
.column_name(column.name())
.column_pos(pos)
.nullable(column.is_nullable())
@@ -729,11 +740,12 @@ protected:
tuple_builder.build(&descriptor_builder);
auto descriptor = descriptor_builder.desc_tbl();
std::vector<TExpr> output_exprs;
- for (int pos = 0; pos < 3; ++pos) {
+ for (int pos : output_positions) {
TExprNode node;
node.__set_node_type(TExprNodeType::SLOT_REF);
node.__set_type(descriptor.slotDescriptors[pos].slotType);
-
node.__set_is_nullable(_tablet->tablet_schema()->column(pos).is_nullable());
+ node.__set_is_nullable(
+
_tablet->tablet_schema()->column(scan_positions[pos]).is_nullable());
node.__set_num_children(0);
TSlotRef slot_ref;
slot_ref.__set_slot_id(descriptor.slotDescriptors[pos].id);
@@ -744,6 +756,8 @@ protected:
output_exprs.push_back(expr);
}
TQueryOptions options;
+ options.__set_enable_short_circuit_query_access_column_store(
+ !_tablet->tablet_schema()->row_columns_uids().empty());
executor->_tablet = _tablet;
executor->_reusable = std::make_shared<Reusable>();
RETURN_IF_ERROR(executor->_reusable->init(descriptor, output_exprs,
options, "+08:00", "",
@@ -889,6 +903,110 @@ TEST_P(PointQuerySegmentReuseTest,
LookupUpAndRowCacheHit) {
}
}
+TEST_P(PointQuerySegmentReuseTest,
PartialRowStoreProjectionKeepsBlockRowsAligned) {
+ ASSERT_EQ(Status::OK(), create_tablet(true));
+ {
+ PointQueryExecutor executor;
+ ASSERT_EQ(Status::OK(), prepare_executor(&executor, {10}, {0, 1, 4},
{1}));
+ ASSERT_EQ(Status::OK(), executor._lookup_row_key());
+ ASSERT_EQ(executor._row_hits, 1);
+ EXPECT_EQ(executor._reusable->include_col_uids().size(), 3);
+ EXPECT_EQ(executor._reusable->missing_col_uids(),
(std::unordered_set<int32_t> {4}));
+ ASSERT_EQ(Status::OK(), executor._lookup_row_data());
+ const auto& block = *executor._result_block;
+ for (const auto& column : block.get_columns()) {
+ ASSERT_EQ(column->size(), 1);
+ }
+ EXPECT_EQ(block.rows(), 1);
+ EXPECT_EQ(block.get_by_position(1).column->get_int(0), 100);
+ EXPECT_EQ(block.get_by_position(2).column->get_int(0), 0);
+ }
+ {
+ PointQueryExecutor executor;
+ ASSERT_EQ(Status::OK(), prepare_executor(&executor, {30, 99, 10, 20,
11}, {0, 2, 4}, {1}));
+ ASSERT_EQ(Status::OK(), executor._lookup_row_key());
+ ASSERT_EQ(executor._row_hits, 3);
+ ASSERT_EQ(Status::OK(), executor._lookup_row_data());
+ const auto& block = *executor._result_block;
+ for (const auto& column : block.get_columns()) {
+ ASSERT_EQ(column->size(), 3);
+ }
+ EXPECT_EQ(block.rows(), 3);
+ const auto& values = assert_cast<const
ColumnNullable&>(*block.get_by_position(1).column);
+ EXPECT_EQ(values.get_nested_column().get_int(0), 3000);
+ EXPECT_EQ(values.get_nested_column().get_int(1), 1000);
+ EXPECT_FALSE(values.is_null_at(0));
+ EXPECT_FALSE(values.is_null_at(1));
+ EXPECT_TRUE(values.is_null_at(2));
+ for (size_t row = 0; row < 3; ++row) {
+ EXPECT_EQ(block.get_by_position(2).column->get_int(row), 0);
+ }
+ }
+ {
+ PointQueryExecutor executor;
+ ASSERT_EQ(Status::OK(), prepare_executor(&executor, {99, 20}, {0, 1,
4}, {1}));
+ ASSERT_EQ(Status::OK(), executor._lookup_row_key());
+ EXPECT_EQ(executor._row_hits, 0);
+ ASSERT_EQ(Status::OK(), executor._lookup_row_data());
+ for (const auto& column : executor._result_block->get_columns()) {
+ EXPECT_EQ(column->size(), 0);
+ }
+ }
+}
+
+TEST_P(PointQuerySegmentReuseTest, PartialRowStoreBypassesIncompleteRowCache) {
+ ASSERT_EQ(Status::OK(), create_tablet(true));
+ config::disable_storage_row_cache = false;
+ for (bool preloaded : {false, true}) {
+ PointQueryExecutor executor;
+ ASSERT_EQ(Status::OK(), prepare_executor(&executor, {10}, {0, 1, 4},
{0, 1}));
+ ASSERT_EQ(Status::OK(), executor._lookup_row_key());
+ EXPECT_EQ(executor._row_hits, 1);
+ EXPECT_EQ(executor._profile_metrics.row_cache_hits, 0);
+ const auto& context = executor._row_read_ctxs.front();
+ ASSERT_TRUE(context._row_location.has_value());
+ ASSERT_EQ(Status::OK(), executor._lookup_row_data());
+ const auto& block = *executor._result_block;
+ for (const auto& column : block.get_columns()) {
+ ASSERT_EQ(column->size(), 1);
+ }
+ EXPECT_EQ(block.get_by_position(0).column->get_int(0), 10);
+ EXPECT_EQ(block.get_by_position(1).column->get_int(0), 100);
+ EXPECT_EQ(block.get_by_position(2).column->get_int(0), 0);
+ RowCache::CacheHandle handle;
+ EXPECT_EQ(_row_cache->lookup({_tablet->tablet_id(),
context._primary_key}, &handle),
+ preloaded);
+ if (!preloaded) {
+ // Seed a real partial payload, as a BE without the fix could have
cached it.
+ std::string value;
+ io::IOContext io_ctx;
+ io_ctx.reader_type = ReaderType::READER_QUERY;
+ ASSERT_EQ(Status::OK(),
+ _tablet->lookup_row_data(context._primary_key,
context._row_location.value(),
+ context._segment,
*context._rowset_ptr,
+
executor._profile_metrics.read_stats, value, true,
+ &io_ctx));
+ RowCache::CacheHandle seeded_handle;
+ ASSERT_TRUE(_row_cache->lookup({_tablet->tablet_id(),
context._primary_key},
+ &seeded_handle));
+ }
+ }
+}
+
+TEST_P(PointQuerySegmentReuseTest, PartialRowStoreFiltersDeleteSign) {
+ ASSERT_EQ(Status::OK(), create_tablet(true));
+ // No delete bitmap for key 50: its stored delete sign must still filter
the row.
+ ASSERT_EQ(Status::OK(), write_rowset(3, {{50}}, 1));
+ PointQueryExecutor executor;
+ ASSERT_EQ(Status::OK(), prepare_executor(&executor, {50}, {0, 1, 4}, {1}));
+ ASSERT_EQ(Status::OK(), executor._lookup_row_key());
+ EXPECT_EQ(executor._row_hits, 1);
+ ASSERT_EQ(Status::OK(), executor._lookup_row_data());
+ for (const auto& column : executor._result_block->get_columns()) {
+ EXPECT_EQ(column->size(), 0);
+ }
+}
+
INSTANTIATE_TEST_SUITE_P(SegmentLayouts, PointQuerySegmentReuseTest,
testing::Bool());
} // namespace doris
diff --git
a/regression-test/data/point_query_p0/test_short_circuit_partial_rowstore_projection.out
b/regression-test/data/point_query_p0/test_short_circuit_partial_rowstore_projection.out
new file mode 100644
index 00000000000..1ac587a0885
--- /dev/null
+++
b/regression-test/data/point_query_p0/test_short_circuit_partial_rowstore_projection.out
@@ -0,0 +1,18 @@
+-- This file is automatically generated. You should know what you did if you
want to edit this
+-- !scan_v --
+seven
+
+-- !scan_v_v --
+seven seven
+
+-- !scan_k_v --
+7 seven
+
+-- !point_v --
+seven
+
+-- !point_v_v --
+seven seven
+
+-- !point_k_v --
+7 seven
diff --git
a/regression-test/suites/point_query_p0/test_short_circuit_partial_rowstore_projection.groovy
b/regression-test/suites/point_query_p0/test_short_circuit_partial_rowstore_projection.groovy
new file mode 100644
index 00000000000..5f0159b97b6
--- /dev/null
+++
b/regression-test/suites/point_query_p0/test_short_circuit_partial_rowstore_projection.groovy
@@ -0,0 +1,57 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+suite("test_short_circuit_partial_rowstore_projection", "p0") {
+ sql "DROP TABLE IF EXISTS short_circuit_partial_rowstore_projection"
+ sql """
+ CREATE TABLE short_circuit_partial_rowstore_projection (
+ k INT NOT NULL,
+ v VARCHAR(20),
+ w INT,
+ z VARCHAR(20)
+ )
+ UNIQUE KEY(k)
+ DISTRIBUTED BY HASH(k) BUCKETS 1
+ PROPERTIES (
+ "enable_unique_key_merge_on_write" = "true",
+ "light_schema_change" = "true",
+ "row_store_columns" = "v,z,w",
+ "replication_num" = "1"
+ )
+ """
+ sql "INSERT INTO short_circuit_partial_rowstore_projection VALUES (7,
'seven', 70, 't')"
+ sql "SET enable_sql_cache = false"
+ sql "SET enable_short_circuit_query_access_column_store = true"
+
+ sql "SET enable_short_circuit_query = false"
+ explain {
+ sql "SELECT v FROM short_circuit_partial_rowstore_projection WHERE k =
7"
+ notContains "SHORT-CIRCUIT"
+ }
+ order_qt_scan_v "SELECT v FROM short_circuit_partial_rowstore_projection
WHERE k = 7"
+ order_qt_scan_v_v "SELECT v, v FROM
short_circuit_partial_rowstore_projection WHERE k = 7"
+ order_qt_scan_k_v "SELECT k, v FROM
short_circuit_partial_rowstore_projection WHERE k = 7"
+
+ sql "SET enable_short_circuit_query = true"
+ explain {
+ sql "SELECT v FROM short_circuit_partial_rowstore_projection WHERE k =
7"
+ contains "SHORT-CIRCUIT"
+ }
+ order_qt_point_v "SELECT v FROM short_circuit_partial_rowstore_projection
WHERE k = 7"
+ order_qt_point_v_v "SELECT v, v FROM
short_circuit_partial_rowstore_projection WHERE k = 7"
+ order_qt_point_k_v "SELECT k, v FROM
short_circuit_partial_rowstore_projection WHERE k = 7"
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]