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 +4 -4
- data/VERSION +1 -1
- data/hipster_sql_to_hbase.gemspec +1 -1
- data/lib/sql_parser/sql_row_support.treetop +3 -1
- data/lib/sql_parser/sql_select_clause.treetop +25 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e92716eafb59cfb6622bfd8452928338c8066d4
|
4
|
+
data.tar.gz: 9438980608bb8dd5f1dd80bb06eb746ebbdf97cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad2187cb445483a43d13f5672968fbff0d4b1d76829d9cb99e88a710206990ccee379b914a9029693e1e965bb5bb786018c5372825b4fc6beb5f9ccab00c8b72
|
7
|
+
data.tar.gz: 2b6e7396866450d91abc92dfec5761d2e14faae61192926d6c9fef2808e461c9b6454b4c222fc88a02c99ad5e360da65947dd57b032ad0f1daa316ae1415920e
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.1
|
@@ -126,7 +126,7 @@ grammar SQLRowSupport
|
|
126
126
|
end
|
127
127
|
|
128
128
|
rule column_name
|
129
|
-
backtick_column_string / column_string
|
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"
|
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
|
|