You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2020/03/11 23:40:36 UTC
[hbase] branch branch-2 updated: HBASE-23929 Shell formatter for
for meta table should pretty-print values of info:merge columns
This is an automated email from the ASF dual-hosted git repository.
stack pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2 by this push:
new 0152272 HBASE-23929 Shell formatter for for meta table should pretty-print values of info:merge columns
0152272 is described below
commit 0152272435c015d4c3cf8c67bea8e99ceac79246
Author: stack <st...@apache.org>
AuthorDate: Wed Mar 11 16:40:07 2020 -0700
HBASE-23929 Shell formatter for for meta table should pretty-print values of info:merge columns
---
hbase-shell/src/main/ruby/hbase/table.rb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hbase-shell/src/main/ruby/hbase/table.rb b/hbase-shell/src/main/ruby/hbase/table.rb
index 2b1a177..49f389e 100644
--- a/hbase-shell/src/main/ruby/hbase/table.rb
+++ b/hbase-shell/src/main/ruby/hbase/table.rb
@@ -738,7 +738,8 @@ EOF
# Intercept cells whose format we know such as the info:regioninfo in hbase:meta
def to_string(column, kv, maxlength = -1, converter_class = nil, converter = nil)
if is_meta_table?
- if column == 'info:regioninfo' || column == 'info:splitA' || column == 'info:splitB'
+ if column == 'info:regioninfo' || column == 'info:splitA' || column == 'info:splitB' || \
+ column.start_with?('info:merge')
hri = org.apache.hadoop.hbase.HRegionInfo.parseFromOrNull(kv.getValueArray,
kv.getValueOffset, kv.getValueLength)
return format('timestamp=%d, value=%s', kv.getTimestamp, hri.nil? ? '' : hri.toString)