presto-metrics 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/presto/metrics/query.rb +5 -3
- data/lib/presto/metrics/version.rb +1 -1
- metadata +1 -1
data/lib/presto/metrics/query.rb
CHANGED
@@ -14,7 +14,7 @@ module Presto
|
|
14
14
|
@client = client
|
15
15
|
end
|
16
16
|
|
17
|
-
def format_table(tbl, label, align, sep
|
17
|
+
def format_table(tbl, label, align, sep)
|
18
18
|
# Compute col length
|
19
19
|
col = {}
|
20
20
|
label.each_with_index{|l, i| col[i] = l.length}
|
@@ -62,7 +62,8 @@ module Presto
|
|
62
62
|
format_table(
|
63
63
|
tbl,
|
64
64
|
:label => %w|query time state r f t user catalog schema source sql|,
|
65
|
-
:align => %w|r r r r r r l l r l l
|
65
|
+
:align => %w|r r r r r r l l r l l |,
|
66
|
+
:sep => ' '
|
66
67
|
)
|
67
68
|
end
|
68
69
|
|
@@ -87,7 +88,8 @@ module Presto
|
|
87
88
|
}
|
88
89
|
format_table(stats,
|
89
90
|
:label => %w|task_id host state processed_rows size|,
|
90
|
-
:align => %w|l l l r r
|
91
|
+
:align => %w|l l l r r|,
|
92
|
+
:sep => ' '
|
91
93
|
)
|
92
94
|
end
|
93
95
|
|