From b4721a5fc28398ef4c05c8fc576b0db2950c6a08 Mon Sep 17 00:00:00 2001 From: Mactavish Cui Date: Tue, 7 Jan 2025 10:50:02 +0800 Subject: [PATCH] [Bug-4117][core]Bug fix for debug task when target table contains '.' (#4119) --- .../org/dinky/explainer/mock/MockStatementExplainer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dinky-core/src/main/java/org/dinky/explainer/mock/MockStatementExplainer.java b/dinky-core/src/main/java/org/dinky/explainer/mock/MockStatementExplainer.java index 4106cd7f4b..3bc4c4365c 100644 --- a/dinky-core/src/main/java/org/dinky/explainer/mock/MockStatementExplainer.java +++ b/dinky-core/src/main/java/org/dinky/explainer/mock/MockStatementExplainer.java @@ -165,14 +165,14 @@ private String getSinkMockDdlStatement(String tableName, String columns) { /** * generate table identifier with mocked prefix info - * @param tableName table name + * @param tableIdentifier table identifier * @return table identifier with mocked prefix info */ - private List generateMockedTableIdentifier(String tableName) { + private List generateMockedTableIdentifier(String tableIdentifier) { List names = new ArrayList<>(); names.add("default_catalog"); names.add("default_database"); - names.add("mock_sink_" + tableName); + names.add("mock_sink_" + tableIdentifier.replace(".", "_")); return names; } }