td 0.10.82 → 0.10.83

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.
data/ChangeLog CHANGED
@@ -1,3 +1,10 @@
1
+ == 2013-07-03 version 0.10.83
2
+
3
+ * Add -x option to query, exlude result from automatically being downloaded
4
+ * Update td-bulk-import-java to 0.2.0-snapshot
5
+ * Add line-json.gz format to bulk_export
6
+
7
+
1
8
  == 2013-06-24 version 0.10.82
2
9
 
3
10
  * table:list shows 'last log timestamp' column
@@ -19,7 +19,7 @@ if [ -n "$chrev" ];then
19
19
  fi
20
20
 
21
21
  revname="$(git show --pretty=format:'%H %ad' | head -n 1)"
22
- vername="0.1.2-SNAPSHOT"
22
+ vername="0.2.0-SNAPSHOT"
23
23
 
24
24
  mvn package -Dmaven.test.skip=true || exit 1
25
25
  cp target/td-bulk-import-${vername}.jar ../../java/td-bulk-import-${vername}.jar
@@ -1 +1 @@
1
- 5be770a4fc06c741ab70716e819c8930f134db41 Thu Feb 28 14:22:13 2013 +0900
1
+ 13ef573e6221c827f793ed68fea7f7e4978e7957 Fri Jun 28 16:14:15 2013 +0900
@@ -434,7 +434,7 @@ module Command
434
434
 
435
435
  # make application arguments
436
436
  app_args = []
437
- app_args << 'com.treasure_data.tools.BulkImportTool'
437
+ app_args << 'com.treasure_data.bulk_import.Main'
438
438
  app_args << 'upload_parts'
439
439
  app_args << opts[21]
440
440
 
@@ -470,7 +470,7 @@ module Command
470
470
 
471
471
  # make application arguments
472
472
  app_args = []
473
- app_args << 'com.treasure_data.tools.BulkImportTool'
473
+ app_args << 'com.treasure_data.bulk_import.Main'
474
474
  app_args << 'prepare_parts'
475
475
  app_args << opts[18]
476
476
 
@@ -29,6 +29,9 @@ module Command
29
29
  op.on('-s', '--aws-secret-key SECRET_KEY', 'AWS secret access key to export data (required)') {|s|
30
30
  aws_secret_access_key = s
31
31
  }
32
+ op.on('-F', '--file-format FILE_FORMAT', 'file format for exported data, either json.gz (default) or line-json.gz') { |s|
33
+ file_format = s if s == 'line-json.gz'
34
+ }
32
35
 
33
36
  db_name, table_name = op.cmd_parse
34
37
 
@@ -17,6 +17,7 @@ module Command
17
17
  query = nil
18
18
  sampling_all = nil
19
19
  type = nil
20
+ exclude = false
20
21
 
21
22
  op.on('-g', '--org ORGANIZATION', "issue the query under this organization") {|s|
22
23
  org = s
@@ -66,6 +67,9 @@ module Command
66
67
  op.on('--sampling DENOMINATOR', 'enable random sampling to reduce records 1/DENOMINATOR', Integer) {|i|
67
68
  sampling_all = i
68
69
  }
70
+ op.on('-x', '--exclude', 'do not automatically retrieve the job result', TrueClass) {|b|
71
+ exclude = b
72
+ }
69
73
 
70
74
  sql = op.cmd_parse
71
75
 
@@ -108,7 +112,7 @@ module Command
108
112
  if wait && !job.finished?
109
113
  wait_job(job)
110
114
  puts "Status : #{job.status}"
111
- if job.success?
115
+ if job.success? && !exclude
112
116
  puts "Result :"
113
117
  show_result(job, output, format, render_opts)
114
118
  end
@@ -1,5 +1,5 @@
1
1
  module TreasureData
2
2
 
3
- VERSION = '0.10.82'
3
+ VERSION = '0.10.83'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: td
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.82
4
+ version: 0.10.83
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-24 00:00:00.000000000 Z
12
+ date: 2013-07-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: msgpack
@@ -230,7 +230,7 @@ files:
230
230
  - dist/resources/pkg/postinstall
231
231
  - dist/resources/pkg/ruby-2.0.0-p0.pkg
232
232
  - dist/resources/pkg/td
233
- - java/td-bulk-import-0.1.2-SNAPSHOT.jar
233
+ - java/td-bulk-import-0.2.0-SNAPSHOT.jar
234
234
  - java/td-bulk-import-java.version
235
235
  - lib/td.rb
236
236
  - lib/td/command/account.rb
@@ -292,7 +292,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
292
292
  version: '0'
293
293
  segments:
294
294
  - 0
295
- hash: -1559655986904539627
295
+ hash: 2192841065955335729
296
296
  required_rubygems_version: !ruby/object:Gem::Requirement
297
297
  none: false
298
298
  requirements:
@@ -301,7 +301,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
301
301
  version: '0'
302
302
  segments:
303
303
  - 0
304
- hash: -1559655986904539627
304
+ hash: 2192841065955335729
305
305
  requirements: []
306
306
  rubyforge_project:
307
307
  rubygems_version: 1.8.23