| 120 | } |
| 121 | |
| 122 | Void 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 | } |
nothing calls this directly
no test coverage detected