Skip to content

Commit df15f33

Browse files
use keySet() instead stringPropertyNames because stringPropertyNames cant get the property that was put with put()
1 parent 4c64a14 commit df15f33

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ protected BatchInsert newBatchInsert(PluginTask task, Optional<MergeConfig> merg
186186
@Override
187187
protected void logConnectionProperties(String url, Properties props) {
188188
Properties maskedProps = new Properties();
189-
for (String key : props.stringPropertyNames()) {
189+
for (Object keyObj : props.keySet()) {
190+
String key = (String) keyObj;
190191
if (key.equals("password")) {
191192
maskedProps.setProperty(key, "***");
192193
} else if (key.equals("proxyPassword")) {

0 commit comments

Comments
 (0)