triglav-agent-bigquery 1.0.0.rc2 → 1.0.0.rc3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a96e14c9a56fc4252a422079d210232c95dff73
|
4
|
+
data.tar.gz: af517ecc9e6e4f1a5adc012447a21eebf0356811
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 498f2afa7d336f4dce0dfe232e63a083e972a01394b292b0d5aaad4d0723e29c741cbf3c53f164b93026b40d514a97bd6bd450bd90eca64a6f1c1fcf8bc302a9
|
7
|
+
data.tar.gz: 7a63af2a83265c93ff12547f0d901805b2fc6f26e4c07754017873071be6dd0e37c5c2f4ec84059af981b6277829b8890cbb6f065473f25f7c97b8ea4746d81c
|
data/CHANGELOG.md
ADDED
@@ -131,7 +131,7 @@ module Triglav::Agent
|
|
131
131
|
result = query(
|
132
132
|
"select partition_id,creation_time,last_modified_time " \
|
133
133
|
"from [#{project}:#{dataset}.#{table}$__PARTITIONS_SUMMARY__] " \
|
134
|
-
"order by partition_id
|
134
|
+
"order by partition_id desc#{limit_stmt}"
|
135
135
|
)
|
136
136
|
result[:rows].map {|r| v = r[:f].map {|c| c[:v] }; [v[0], v[1].to_i, v[2].to_i] }
|
137
137
|
end
|
@@ -164,7 +164,7 @@ module Triglav::Agent
|
|
164
164
|
}
|
165
165
|
opts = {}
|
166
166
|
|
167
|
-
$logger.
|
167
|
+
$logger.debug { "insert_job(#{project}, #{body}, #{opts})" }
|
168
168
|
job_res = client.insert_job(project, body, opts)
|
169
169
|
|
170
170
|
if options[:dry_run]
|
@@ -67,8 +67,8 @@ module Triglav::Agent
|
|
67
67
|
end
|
68
68
|
|
69
69
|
def get_last_modified_times
|
70
|
-
max_last_modified_time = @status.getsetnx([:max], $setting.debug? ? 0 : get_current_time)
|
71
70
|
last_modified_times = @status.get
|
71
|
+
max_last_modified_time = last_modified_times[:max] || @status.getsetnx([:max], $setting.debug? ? 0 : get_current_time)
|
72
72
|
removes = last_modified_times.keys - tables.keys
|
73
73
|
appends = tables.keys - last_modified_times.keys
|
74
74
|
removes.each {|table| last_modified_times.delete(table) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: triglav-agent-bigquery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.rc3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Triglav Team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: triglav-agent
|
@@ -161,6 +161,7 @@ files:
|
|
161
161
|
- ".gitignore"
|
162
162
|
- ".rspec"
|
163
163
|
- ".travis.yml"
|
164
|
+
- CHANGELOG.md
|
164
165
|
- CODE_OF_CONDUCT.md
|
165
166
|
- Gemfile
|
166
167
|
- LICENSE.txt
|