Skip to content

Commit 7fc9db4

Browse files
committed
Wrap names with double quotes
1 parent 5fd4e49 commit 7fc9db4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/org/embulk/output/SnowflakeOutputPlugin.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,12 @@ protected JdbcOutputConnector getConnector(PluginTask task, boolean retryableMet
167167
throw new ConfigException(e);
168168
}
169169
}
170+
if (t.getWarehouse().startsWith("\"") && t.getWarehouse().endsWith("\"")) {
171+
props.setProperty("warehouse", t.getWarehouse());
172+
} else {
173+
props.setProperty("warehouse", "\"" + t.getWarehouse() + "\"");
174+
}
170175

171-
props.setProperty("warehouse", t.getWarehouse());
172176
props.setProperty("db", t.getDatabase());
173177
props.setProperty("schema", t.getSchema());
174178
if (!t.getRole().isEmpty()) {

0 commit comments

Comments
 (0)