src/InferTypesHandler.h
branchv_0
changeset 4 66c8a1783884
parent 1 da114916734b
child 9 215f62cc655f
--- a/src/InferTypesHandler.h	Sun May 23 15:51:43 2021 +0200
+++ b/src/InferTypesHandler.h	Sun May 23 17:17:33 2021 +0200
@@ -71,6 +71,7 @@
 
 	void startRelation(string_t name, vector<AttributeMetadata> attributes) override {
 		// TODO: move this logic to relpipe-lib-infertypes and share with certain modules like relpipe-in-csv
+		currentMode.reset();
 		for (RelationConfiguration rc : configuration.relationConfigurations) {
 			if (std::regex_match(name, rc.relationPattern)) {
 				if (rc.mode == MODE::METADATA || rc.mode == MODE::AUTO && MetadataMode::willInfer(attributes)) currentMode.reset(new MetadataMode(relationalWriter));