--- a/src/CSVHandler.h Sat Oct 24 00:08:18 2020 +0200
+++ b/src/CSVHandler.h Sun Apr 18 10:42:54 2021 +0200
@@ -56,7 +56,7 @@
void startRelation(string_t name, std::vector<AttributeMetadata> attributes) override {
if (firstAttributes.empty()) {
firstAttributes = attributes;
- if (configuration.writeHeader) for (auto attr : attributes) attribute(attr.getAttributeName());
+ if (configuration.writeHeader) for (auto attr : attributes) attribute(configuration.writeTypes ? attr.getAttributeName() + L"::" + attr.getTypeName() : attr.getAttributeName());
} else {
// TODO: UNION ALL if data types and attribute count matches
throw RelpipeCSVWriterException(L"Only a single relation can be converted to the CSV format.");