| 52 | } |
| 53 | |
| 54 | StoragePtr StorageAlias::getTargetTable(std::optional<TargetAccess> access_check) const |
| 55 | { |
| 56 | if (access_check) |
| 57 | { |
| 58 | if (access_check->column_names.empty()) |
| 59 | access_check->context->checkAccess(access_check->access_type, target_database, target_table); |
| 60 | else |
| 61 | access_check->context->checkAccess(access_check->access_type, target_database, target_table, access_check->column_names); |
| 62 | } |
| 63 | |
| 64 | return DatabaseCatalog::instance().getTable(StorageID(target_database, target_table), getContext()); |
| 65 | } |
| 66 | |
| 67 | /// AliasSink: Writes data to the target table using full INSERT pipeline |
| 68 | /// which triggers materialized views on the target table. |
no test coverage detected