embulk-input-marketo 0.5.7.alpha.3 → 0.5.7.alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c42c9fcf28e826912b2e3c1f0952ba1d25b4652e
|
4
|
+
data.tar.gz: 87eb0b019feda052f4dd4c87cc8df852ffc2e33b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a305f0e763086fb4cb6763840b3b7bffde0c475e9a0acf2e42a404341dc7dbe7a6bfdcce66727a9bd6febd48f55dd560b23cab9063c90a65dcdb8dd1887523e9
|
7
|
+
data.tar.gz: 250082fb8a23b96b9860fe7224b0b72ce49def3c791225acdb2a5262292b8d23a5c1958c712c2fe460168b498e34d383505b053a480b4c7b257e78440f7c9e64
|
data/build.gradle
CHANGED
data/classpath/{embulk-input-marketo-0.5.7.alpha.3.jar → embulk-input-marketo-0.5.7.alpha.4.jar}
RENAMED
Binary file
|
@@ -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
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
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
|
119
|
-
currentLatestFetchTime
|
120
|
-
|
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 ?
|
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.
|
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-
|
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:
|