MCPcopy Create free account
hub / github.com/ByConity/ByConity / visitTableScanNode

Method visitTableScanNode

src/Optimizer/PlanCheck.cpp:122–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122Void TableScanChecker::visitTableScanNode(TableScanNode & node, ContextMutablePtr & context)
123{
124 auto & step = node.getStep();
125 auto storage = step->getStorage();
126 if (!context->getSettingsRef().allow_map_access_without_key && storage && storage->supportsMapImplicitColumn())
127 {
128 Block header = storage->getStorageSnapshot(storage->getInMemoryMetadataPtr(), context)->getSampleBlockForColumns(step->getRequiredColumns());
129 for (auto & col : header)
130 {
131 if (col.type->isByteMap())
132 throw Exception("Map column access without key is not allowed for ByteMap", ErrorCodes::NOT_IMPLEMENTED);
133 }
134 }
135 return {};
136}
137}

Callers

nothing calls this directly

Calls 9

getStepMethod · 0.80
ExceptionClass · 0.50
getStorageMethod · 0.45
getStorageSnapshotMethod · 0.45
getRequiredColumnsMethod · 0.45
isByteMapMethod · 0.45

Tested by

no test coverage detected