embulk-input-marketo 0.5.7.alpha.3 → 0.5.7.alpha.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d74b33cde7c0649fe4f4cac9de7180e1ae1facce
4
- data.tar.gz: 9c55a46eb01f9ff2c7d304529d90a21528ae7a6f
3
+ metadata.gz: c42c9fcf28e826912b2e3c1f0952ba1d25b4652e
4
+ data.tar.gz: 87eb0b019feda052f4dd4c87cc8df852ffc2e33b
5
5
  SHA512:
6
- metadata.gz: e3625b3fe800f9d005811df70a7f881f2183ad0a82dff1d5a5917955119c0594cc0848d73a5ef913175de6fb9f4449fc96fabed9f03ba5fd08ec0e45ad0ead85
7
- data.tar.gz: db721e1064761acaf2d95f0bccc877985a2279b9ef5bf8b0a88ff1985dabe35d6cf8fbf146b7b050c9bfcf3421675fff5c937c9b547df9a1a885fc72a33d7f63
6
+ metadata.gz: a305f0e763086fb4cb6763840b3b7bffde0c475e9a0acf2e42a404341dc7dbe7a6bfdcce66727a9bd6febd48f55dd560b23cab9063c90a65dcdb8dd1887523e9
7
+ data.tar.gz: 250082fb8a23b96b9860fe7224b0b72ce49def3c791225acdb2a5262292b8d23a5c1958c712c2fe460168b498e34d383505b053a480b4c7b257e78440f7c9e64
data/build.gradle CHANGED
@@ -16,7 +16,7 @@ repositories {
16
16
  configurations {
17
17
  provided
18
18
  }
19
- version = "0.5.7.alpha.3"
19
+ version = "0.5.7.alpha.4"
20
20
  sourceCompatibility = 1.7
21
21
  targetCompatibility = 1.7
22
22
 
@@ -110,22 +110,24 @@ public abstract class MarketoBaseBulkExtractInputPlugin<T extends MarketoBaseBul
110
110
  ConfigDiff configDiff = super.buildConfigDiff(task, schema, taskCount, taskReports);
111
111
  Long currentLatestFetchTime = 0L;
112
112
  Set<String> latestUIds = null;
113
- for (TaskReport taskReport : taskReports) {
114
- Long latestFetchTime = taskReport.get(Long.class, LATEST_FETCH_TIME);
115
- if (latestFetchTime == null) {
116
- continue;
113
+ if (incrementalColumn != null) {
114
+ for (TaskReport taskReport : taskReports) {
115
+ Long latestFetchTime = taskReport.get(Long.class, LATEST_FETCH_TIME);
116
+ if (latestFetchTime == null) {
117
+ continue;
118
+ }
119
+ if (currentLatestFetchTime < latestFetchTime) {
120
+ currentLatestFetchTime = latestFetchTime;
121
+ latestUIds = taskReport.get(Set.class, LATEST_UID_LIST);
122
+ }
117
123
  }
118
- if (currentLatestFetchTime < latestFetchTime) {
119
- currentLatestFetchTime = latestFetchTime;
120
- latestUIds = taskReport.get(Set.class, LATEST_UID_LIST);
124
+ if (!currentLatestFetchTime.equals(0L)) {
125
+ configDiff.set(LATEST_FETCH_TIME, currentLatestFetchTime);
126
+ DateFormat df = new SimpleDateFormat(MarketoUtils.MARKETO_DATE_SIMPLE_DATE_FORMAT);
127
+ configDiff.set("from_date", df.format(new Date(currentLatestFetchTime)));
128
+ configDiff.set(LATEST_UID_LIST, latestUIds);
121
129
  }
122
130
  }
123
- if (!currentLatestFetchTime.equals(0L)) {
124
- configDiff.set(LATEST_FETCH_TIME, currentLatestFetchTime);
125
- DateFormat df = new SimpleDateFormat(MarketoUtils.MARKETO_DATE_SIMPLE_DATE_FORMAT);
126
- configDiff.set("from_date", df.format(new Date(currentLatestFetchTime)));
127
- configDiff.set(LATEST_UID_LIST, latestUIds);
128
- }
129
131
  return configDiff;
130
132
  }
131
133
 
@@ -257,7 +259,7 @@ public abstract class MarketoBaseBulkExtractInputPlugin<T extends MarketoBaseBul
257
259
  imported++;
258
260
  }
259
261
  }
260
- taskReport.set(LATEST_FETCH_TIME, currentTimestamp == null ? null : currentTimestamp.getMillis());
262
+ taskReport.set(LATEST_FETCH_TIME, currentTimestamp == null ? 0L : currentTimestamp.getMillis());
261
263
  taskReport.set(LATEST_UID_LIST, latestUids);
262
264
  return taskReport;
263
265
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-input-marketo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.7.alpha.3
4
+ version: 0.5.7.alpha.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tai Khuu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-25 00:00:00.000000000 Z
11
+ date: 2017-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -90,11 +90,11 @@ files:
90
90
  - src/main/java/org/embulk/input/marketo/rest/RecordPagingIterable.java
91
91
  - src/test/java/org/embulk/input/marketo/TestMarketoInputPlugin.java
92
92
  - src/test/java/org/embulk/input/marketo/rest/MarketoBaseRestClientTest.java
93
- - classpath/embulk-input-marketo-0.5.7.alpha.3.jar
94
93
  - classpath/jetty-http-9.2.14.v20151106.jar
95
94
  - classpath/embulk-base-restclient-0.5.3.jar
96
95
  - classpath/jetty-client-9.2.14.v20151106.jar
97
96
  - classpath/jetty-util-9.2.14.v20151106.jar
97
+ - classpath/embulk-input-marketo-0.5.7.alpha.4.jar
98
98
  - classpath/embulk-util-retryhelper-jetty92-0.5.3.jar
99
99
  - classpath/jetty-io-9.2.14.v20151106.jar
100
100
  homepage: