Skip to content

Commit

Permalink
Wrap names with double quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
mzumi committed Jun 11, 2024
1 parent 5fd4e49 commit 7fc9db4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/org/embulk/output/SnowflakeOutputPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,12 @@ protected JdbcOutputConnector getConnector(PluginTask task, boolean retryableMet
throw new ConfigException(e);
}
}
if (t.getWarehouse().startsWith("\"") && t.getWarehouse().endsWith("\"")) {
props.setProperty("warehouse", t.getWarehouse());
} else {
props.setProperty("warehouse", "\"" + t.getWarehouse() + "\"");
}

props.setProperty("warehouse", t.getWarehouse());
props.setProperty("db", t.getDatabase());
props.setProperty("schema", t.getSchema());
if (!t.getRole().isEmpty()) {
Expand Down

0 comments on commit 7fc9db4

Please sign in to comment.