From 7f4dc3da18197b587e177065fd3feeb82533842a Mon Sep 17 00:00:00 2001 From: Yas Okada Date: Tue, 31 Oct 2023 08:49:02 +0000 Subject: [PATCH 1/2] fix: some fields which don't have values such as GROUP, etc show as column. --- build.gradle | 2 +- .../java/org/embulk/input/kintone/KintoneInputPlugin.java | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index faf66bc..ad926ca 100644 --- a/build.gradle +++ b/build.gradle @@ -12,7 +12,7 @@ repositories { } group = "io.trocco" -version = "0.1.9" +version = "0.1.10.dev2" sourceCompatibility = 1.8 targetCompatibility = 1.8 diff --git a/src/main/java/org/embulk/input/kintone/KintoneInputPlugin.java b/src/main/java/org/embulk/input/kintone/KintoneInputPlugin.java index 52881e5..e65beb8 100644 --- a/src/main/java/org/embulk/input/kintone/KintoneInputPlugin.java +++ b/src/main/java/org/embulk/input/kintone/KintoneInputPlugin.java @@ -189,7 +189,10 @@ private Schema buildSchema(final PluginTask task) builder.add("$revision", Types.LONG); for (Map.Entry fieldEntry : fields.entrySet()) { - builder.add(fieldEntry.getKey(), buildType(fieldEntry.getValue().getType())); + final Type type = buildType(fieldEntry.getValue().getType()); + if (type != null) { + builder.add(fieldEntry.getKey(), type); + } } return builder.build(); @@ -230,8 +233,9 @@ private Type buildType(final FieldType fieldType) case STATUS_ASSIGNEE: case TIME: case USER_SELECT: - default: return Types.STRING; + default: + return null; } } } From 98eccceb5a41c3ae495a2ef3ad6087fed20f0525 Mon Sep 17 00:00:00 2001 From: Yas Okada Date: Tue, 7 Nov 2023 14:52:09 +0900 Subject: [PATCH 2/2] remoe dev2 from version number Co-authored-by: Yuu Ito --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index ad926ca..158fd49 100644 --- a/build.gradle +++ b/build.gradle @@ -12,7 +12,7 @@ repositories { } group = "io.trocco" -version = "0.1.10.dev2" +version = "0.1.10" sourceCompatibility = 1.8 targetCompatibility = 1.8