| 57 | } |
| 58 | |
| 59 | std::shared_ptr<PaimonColumnHandle> findPaimonColumnHandle( |
| 60 | const std::unordered_map<std::string, std::shared_ptr<ColumnHandle>>& |
| 61 | columnHandles, |
| 62 | const std::string& fieldName) { |
| 63 | auto it = columnHandles.find(fieldName); |
| 64 | if (it != columnHandles.end()) { |
| 65 | return paimonColumnHandle(it->second, fieldName); |
| 66 | } |
| 67 | |
| 68 | for (const auto& [outputName, columnHandle] : columnHandles) { |
| 69 | auto handle = paimonColumnHandle(columnHandle, outputName); |
| 70 | if (handle->name() == fieldName) { |
| 71 | return handle; |
| 72 | } |
| 73 | } |
| 74 | return nullptr; |
| 75 | } |
| 76 | |
| 77 | } // namespace |
| 78 |
no test coverage detected