Skip to content

Commit eb18de8

Browse files
authored
Merge pull request #39 from yas-okadatech/fix-novalue-fields
fix: some fields which don't have values such as GROUP, etc are shown as column.
2 parents 4c4cdf4 + 98eccce commit eb18de8

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ repositories {
1212
}
1313

1414
group = "io.trocco"
15-
version = "0.1.9"
15+
version = "0.1.10"
1616

1717
sourceCompatibility = 1.8
1818
targetCompatibility = 1.8

src/main/java/org/embulk/input/kintone/KintoneInputPlugin.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,10 @@ private Schema buildSchema(final PluginTask task)
189189
builder.add("$revision", Types.LONG);
190190

191191
for (Map.Entry<String, FieldProperty> fieldEntry : fields.entrySet()) {
192-
builder.add(fieldEntry.getKey(), buildType(fieldEntry.getValue().getType()));
192+
final Type type = buildType(fieldEntry.getValue().getType());
193+
if (type != null) {
194+
builder.add(fieldEntry.getKey(), type);
195+
}
193196
}
194197

195198
return builder.build();
@@ -230,8 +233,9 @@ private Type buildType(final FieldType fieldType)
230233
case STATUS_ASSIGNEE:
231234
case TIME:
232235
case USER_SELECT:
233-
default:
234236
return Types.STRING;
237+
default:
238+
return null;
235239
}
236240
}
237241
}

0 commit comments

Comments
 (0)