Skip to content

Commit

Permalink
Revert "remove unused columns"
Browse files Browse the repository at this point in the history
  • Loading branch information
yas-okadatech authored Oct 3, 2024
1 parent 9facb58 commit 917d705
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ group = "com.treasuredata.embulk.plugins"
description = "Loads records from Marketo."
version = {
def baseVersion = "0.6.26"
def troccoVersion = "0.3.0"
def troccoVersion = "0.1.1"
def tag = "${baseVersion}-trocco-${troccoVersion}"
def vd = versionDetails()
if (vd.lastTag != "${tag}") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,15 @@ public ServiceResponseMapper<? extends ValueLocator> buildServiceResponseMapper(
.add("description", Types.STRING)
.add("createdAt", Types.TIMESTAMP, MarketoUtils.MARKETO_DATE_TIME_FORMAT)
.add("updatedAt", Types.TIMESTAMP, MarketoUtils.MARKETO_DATE_TIME_FORMAT)
.add("startDate", Types.TIMESTAMP, MarketoUtils.MARKETO_DATE_TIME_FORMAT)
.add("endDate", Types.TIMESTAMP, MarketoUtils.MARKETO_DATE_TIME_FORMAT)
.add("url", Types.STRING)
.add("type", Types.STRING)
.add("channel", Types.STRING)
.add("folder", Types.JSON)
.add("status", Types.STRING)
.add("costs", Types.JSON)
.add("tags", Types.JSON)
.add("workspace", Types.STRING);
return builder.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ private void testRun(ConfigSource config, Predicate<MarketoRestClient> expectedC
expectedCall.test(mockRestClient);

Schema embulkSchema = mapper.getEmbulkSchema();
// 13 columns
assertEquals(embulkSchema.size(), 13);
// 17 columns
assertEquals(embulkSchema.size(), 17);
// verify 3 times the method setLong for column id has been called
ArgumentCaptor<Long> longArgumentCaptor = ArgumentCaptor.forClass(Long.class);
Mockito.verify(mockPageBuilder, Mockito.times(3)).setLong(Mockito.eq(embulkSchema.lookupColumn("id")), longArgumentCaptor.capture());
Expand Down

0 comments on commit 917d705

Please sign in to comment.