| 203 | } |
| 204 | |
| 205 | static std::string getColumnAlias(main::ClientContext* context, const std::string& tableName) { |
| 206 | auto properties = |
| 207 | catalog::Catalog::Get(*context) |
| 208 | ->getTableCatalogEntry(&transaction::DUMMY_CHECKPOINT_TRANSACTION, tableName) |
| 209 | ->getProperties(); |
| 210 | std::string alias; |
| 211 | for (auto& property : properties) { |
| 212 | if (property.getName() == "_ID") { |
| 213 | continue; |
| 214 | } |
| 215 | alias += std::format(", e.{} as {}", property.getName(), property.getName()); |
| 216 | } |
| 217 | return alias; |
| 218 | } |
| 219 | |
| 220 | std::string CSVConverter::NodeTableInfo::getConverterQuery(main::ClientContext* context) const { |
| 221 | auto alias = getColumnAlias(context, name); |
no test coverage detected