# HG changeset patch # User František Kučera # Date 1621802459 -7200 # Node ID 215f62cc655f64aee38df0d84f74d4103b35fc29 # Parent fc8b94bccfc5f719f602f11db71e659c5132007d use MODE::DATA as a fallback in MODE::AUTO when MODE::METADATA can not be used diff -r fc8b94bccfc5 -r 215f62cc655f src/InferTypesHandler.h --- a/src/InferTypesHandler.h Sun May 23 22:39:45 2021 +0200 +++ b/src/InferTypesHandler.h Sun May 23 22:40:59 2021 +0200 @@ -75,7 +75,7 @@ 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)); - else if (rc.mode == MODE::DATA) currentMode.reset(new DataMode(relationalWriter)); + else if (rc.mode == MODE::DATA || rc.mode == MODE::AUTO) currentMode.reset(new DataMode(relationalWriter)); else throw std::logic_error("Unsupported mode: " + std::to_string((int) rc.mode)); break; }