embulk-input-marketo 0.6.2 → 0.6.3
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: cd1171d528fb826e6f5a55aa69e3006fea9e08e3
|
4
|
+
data.tar.gz: 800a0f43636d84a5bdf503d8ce7d10b17007f285
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28b96cceda90b61e429e9c76a01d1034852ec0348ccb33e45c4d1bba8e8cf0b5e47e1d0eb89d732519cd2d55b797629481a11e237b2c0da7eb11718533bb794b
|
7
|
+
data.tar.gz: 36e22aa23c8f08fb8c3731fce02fe9ef329f9db9c8fbb8702e0a4053f622b82286ff4959a025ee06c58a0eca9d0988264f11f15c7bf601bc5038874f287d0eaf
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## 0.6.3 - 2017-11-13
|
2
|
+
* [enhance] Ignore records with timestamp smaller or equal to latest_fetch_time [#74](https://github.com/treasure-data/embulk-input-marketo/pull/74)
|
3
|
+
|
4
|
+
## 0.6.2 - 2017-10-16
|
5
|
+
* [fixed] NullPointerException when building config diff [#73](https://github.com/treasure-data/embulk-input-marketo/pull/73)
|
6
|
+
|
1
7
|
## 0.6.1 - 2017-10-12
|
2
8
|
* [fixed] OutOfMemeory when run Lead by list, Lead by program [#69](https://github.com/treasure-data/embulk-input-marketo/pull/69)
|
3
9
|
* [fixed] SOAP only field cause NullPointerException [#69](https://github.com/treasure-data/embulk-input-marketo/pull/69)
|
data/build.gradle
CHANGED
@@ -204,7 +204,8 @@ public abstract class MarketoBaseBulkExtractInputPlugin<T extends MarketoBaseBul
|
|
204
204
|
return new CsvRecordIterator(input, task);
|
205
205
|
}
|
206
206
|
}));
|
207
|
-
|
207
|
+
Long latestFetchTime = task.getLatestFetchTime().or(0L);
|
208
|
+
long currentTimestamp = latestFetchTime;
|
208
209
|
Set<String> latestUids = task.getPreviousUids();
|
209
210
|
//Keep the preview code here when we can enable real preview
|
210
211
|
if (Exec.isPreview()) {
|
@@ -214,6 +215,12 @@ public abstract class MarketoBaseBulkExtractInputPlugin<T extends MarketoBaseBul
|
|
214
215
|
while (csvRecords.hasNext()) {
|
215
216
|
Map<String, String> csvRecord = csvRecords.next();
|
216
217
|
if (task.getIncremental()) {
|
218
|
+
String incrementalTimeStamp = csvRecord.get(incrementalColumn);
|
219
|
+
long timestamp = ISO_DATETIME_FORMAT.parseDateTime(incrementalTimeStamp).getMillis();
|
220
|
+
//Ignore records that have timestamp smaller or equal with latestFetchTime
|
221
|
+
if (latestFetchTime >= timestamp) {
|
222
|
+
continue;
|
223
|
+
}
|
217
224
|
if (!csvRecord.containsKey(incrementalColumn)) {
|
218
225
|
throw new DataException("Extracted record doesn't have incremental column " + incrementalColumn);
|
219
226
|
}
|
@@ -224,8 +231,6 @@ public abstract class MarketoBaseBulkExtractInputPlugin<T extends MarketoBaseBul
|
|
224
231
|
continue;
|
225
232
|
}
|
226
233
|
}
|
227
|
-
String incrementalTimeStamp = csvRecord.get(incrementalColumn);
|
228
|
-
long timestamp = ISO_DATETIME_FORMAT.parseDateTime(incrementalTimeStamp).getMillis();
|
229
234
|
if (currentTimestamp < timestamp) {
|
230
235
|
currentTimestamp = timestamp;
|
231
236
|
//switch timestamp
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk-input-marketo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- uu59
|
@@ -10,36 +10,36 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-
|
13
|
+
date: 2017-11-13 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
|
-
name: bundler
|
17
|
-
version_requirements: !ruby/object:Gem::Requirement
|
18
|
-
requirements:
|
19
|
-
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '1.0'
|
22
16
|
requirement: !ruby/object:Gem::Requirement
|
23
17
|
requirements:
|
24
18
|
- - ~>
|
25
19
|
- !ruby/object:Gem::Version
|
26
20
|
version: '1.0'
|
21
|
+
name: bundler
|
27
22
|
prerelease: false
|
28
23
|
type: :development
|
29
|
-
- !ruby/object:Gem::Dependency
|
30
|
-
name: rake
|
31
24
|
version_requirements: !ruby/object:Gem::Requirement
|
32
25
|
requirements:
|
33
|
-
- -
|
26
|
+
- - ~>
|
34
27
|
- !ruby/object:Gem::Version
|
35
|
-
version: '
|
28
|
+
version: '1.0'
|
29
|
+
- !ruby/object:Gem::Dependency
|
36
30
|
requirement: !ruby/object:Gem::Requirement
|
37
31
|
requirements:
|
38
32
|
- - '>='
|
39
33
|
- !ruby/object:Gem::Version
|
40
34
|
version: '10.0'
|
35
|
+
name: rake
|
41
36
|
prerelease: false
|
42
37
|
type: :development
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - '>='
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '10.0'
|
43
43
|
description: Loads records from Marketo.
|
44
44
|
email:
|
45
45
|
- k@uu59.org
|
@@ -124,9 +124,9 @@ files:
|
|
124
124
|
- src/test/resources/fixtures/lists_response.json
|
125
125
|
- src/test/resources/fixtures/program_response.json
|
126
126
|
- classpath/jetty-http-9.2.14.v20151106.jar
|
127
|
-
- classpath/embulk-input-marketo-0.6.2.jar
|
128
127
|
- classpath/embulk-base-restclient-0.5.3.jar
|
129
128
|
- classpath/jetty-client-9.2.14.v20151106.jar
|
129
|
+
- classpath/embulk-input-marketo-0.6.3.jar
|
130
130
|
- classpath/jetty-util-9.2.14.v20151106.jar
|
131
131
|
- classpath/embulk-util-retryhelper-jetty92-0.5.3.jar
|
132
132
|
- classpath/jetty-io-9.2.14.v20151106.jar
|