triglav-agent-bigquery 1.0.0.rc2 → 1.0.0.rc3

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: 3227bdc17efba766934649c38d0bcc54bb495227
4
- data.tar.gz: 1b46e3fa1bf123592b2a23366855f4bc0e2da03d
3
+ metadata.gz: 9a96e14c9a56fc4252a422079d210232c95dff73
4
+ data.tar.gz: af517ecc9e6e4f1a5adc012447a21eebf0356811
5
5
  SHA512:
6
- metadata.gz: 732fd06f0ea4bbe558ef69cff48cfad170b1b3a1299e94f0f345b48fb44dd5af7df16d08d838227907b24e7504f6a01c4e8c27852a9f43ec7ea4b19eec161834
7
- data.tar.gz: 47a2e1e1f785862b962a51c495ce89ec684e1e5757800a29c0572a5f41020d1f01a09fc044b475ea5637c171c7a065fea0f643db49d68d25c95a35d1bab5febb
6
+ metadata.gz: 498f2afa7d336f4dce0dfe232e63a083e972a01394b292b0d5aaad4d0723e29c741cbf3c53f164b93026b40d514a97bd6bd450bd90eca64a6f1c1fcf8bc302a9
7
+ data.tar.gz: 7a63af2a83265c93ff12547f0d901805b2fc6f26e4c07754017873071be6dd0e37c5c2f4ec84059af981b6277829b8890cbb6f065473f25f7c97b8ea4746d81c
data/CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
1
+ # 1.0.0 (not released yet)
2
+
3
+ initial version
@@ -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 asc#{limit_stmt}"
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.info { "insert_job(#{project}, #{body}, #{opts})" }
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) }
@@ -1,7 +1,7 @@
1
1
  module Triglav
2
2
  module Agent
3
3
  module Bigquery
4
- VERSION = "1.0.0.rc2"
4
+ VERSION = "1.0.0.rc3"
5
5
  end
6
6
  end
7
7
  end
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.rc2
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-17 00:00:00.000000000 Z
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