From 240f5b2b86350dc7bb95e0c06a32efc1e68a374c Mon Sep 17 00:00:00 2001 From: mozhenghua Date: Sun, 30 Oct 2022 17:02:38 +0800 Subject: [PATCH] add leak 'return' end up to error: 'java.lang.IllegalStateException: have not find any tab in DataXReader' --- .../com/qlangtech/tis/runtime/module/action/SchemaAction.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tis-console/src/main/java/com/qlangtech/tis/runtime/module/action/SchemaAction.java b/tis-console/src/main/java/com/qlangtech/tis/runtime/module/action/SchemaAction.java index fb510cae5..21b127c56 100644 --- a/tis-console/src/main/java/com/qlangtech/tis/runtime/module/action/SchemaAction.java +++ b/tis-console/src/main/java/com/qlangtech/tis/runtime/module/action/SchemaAction.java @@ -117,10 +117,10 @@ public void doGetEsTplFields(Context context) throws Exception { DataxProcessor dataxProcessor = DataxProcessor.load(this, dataxName); Optional f = dataxProcessor.getTabAlias().findFirst(); - if(f.isPresent()){ + if (f.isPresent()) { writerStructFields(context, f.get(), typeTransfer); + return; } - // for (Map.Entry e : dataxProcessor.getTabAlias().entrySet()) { // writerStructFields(context, e.getValue(), typeTransfer); // return;