hipster_sql_to_hbase 0.3.0 → 0.3.1

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: 2a64e4c9a48c5328824939eb0c1e2f9298e8154c
4
- data.tar.gz: 285e51b8f9508b1e657e9e6bbecca9c033a6291a
3
+ metadata.gz: 1e92716eafb59cfb6622bfd8452928338c8066d4
4
+ data.tar.gz: 9438980608bb8dd5f1dd80bb06eb746ebbdf97cd
5
5
  SHA512:
6
- metadata.gz: ff411219b4f4e9508346ead60e19bfb22905005584db758f1e16911755acfa3536e5995f478b587731704bf32e59516f3ab24f7efd496f7cc09358305bd945bd
7
- data.tar.gz: f13efc205066e78011bc4e35728fcb5be5bb3126d5449b26853b01e9c284611c85e367ac376a41766e5d6830a4f2ecdcda0c33460279471aa58c063f06c95c39
6
+ metadata.gz: ad2187cb445483a43d13f5672968fbff0d4b1d76829d9cb99e88a710206990ccee379b914a9029693e1e965bb5bb786018c5372825b4fc6beb5f9ccab00c8b72
7
+ data.tar.gz: 2b6e7396866450d91abc92dfec5761d2e14faae61192926d6c9fef2808e461c9b6454b4c222fc88a02c99ad5e360da65947dd57b032ad0f1daa316ae1415920e
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "hipster_sql_to_hbase"
5
- s.version = "0.3.0"
5
+ s.version = "0.3.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Jean Lescure"]
@@ -126,7 +126,7 @@ grammar SQLRowSupport
126
126
  end
127
127
 
128
128
  rule column_name
129
- backtick_column_string / column_string / all_columns
129
+ backtick_column_string / column_string
130
130
  end
131
131
 
132
132
  rule alias_column_name
@@ -146,5 +146,7 @@ grammar SQLRowSupport
146
146
 
147
147
  rule all_columns
148
148
  "*" { def eval; "*"; end }
149
+ /
150
+ table_name DOT "*" { def eval; "*"; end }
149
151
  end
150
152
  end
@@ -2,11 +2,34 @@ grammar SQLSelectClause
2
2
  include SQLRowSupport
3
3
 
4
4
  rule select
5
- "SELECT" SPACES selectable_list optional_spaces {
5
+ "SELECT" all_selectables optional_spaces {
6
+ def eval
7
+ all_selectables.eval
8
+ end
9
+ }
10
+ end
11
+
12
+ rule all_selectables
13
+ SPACES all_columns optional_spaces COMMA optional_spaces selectable_list {
6
14
  def eval
7
15
  result = selectable_list.eval
16
+ result[:columns] = [] if result[:columns].nil?
17
+ result[:columns].unshift all_columns.eval
18
+
8
19
  result
9
- end
20
+ end
21
+ }
22
+ /
23
+ SPACES all_columns {
24
+ def eval
25
+ { :columns => all_columns.eval }
26
+ end
27
+ }
28
+ /
29
+ SPACES selectable_list {
30
+ def eval
31
+ selectable_list.eval
32
+ end
10
33
  }
11
34
  end
12
35
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hipster_sql_to_hbase
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Lescure