# HG changeset patch # User František Kučera # Date 1621783053 -7200 # Node ID 66c8a17838841cad578f68fd3e3fe4f247e6cd5b # Parent 9f2d6645ebe6ad7b285910ae7b63079bc4cf3dff do not keep Mode from previous relation diff -r 9f2d6645ebe6 -r 66c8a1783884 src/InferTypesHandler.h --- 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 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));