From 01cd883f8819da39cf453c2eb21f15be1c49a0bc Mon Sep 17 00:00:00 2001 From: Chia-Ping Tsai Date: Mon, 29 Jan 2018 16:40:37 +0800 Subject: [PATCH] HBASE-19871 delete.rb should require user to provide the column --- hbase-shell/src/main/ruby/shell/commands/delete.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hbase-shell/src/main/ruby/shell/commands/delete.rb b/hbase-shell/src/main/ruby/shell/commands/delete.rb index 79e38f0c3dd..dc5f9f9da0b 100644 --- a/hbase-shell/src/main/ruby/shell/commands/delete.rb +++ b/hbase-shell/src/main/ruby/shell/commands/delete.rb @@ -40,12 +40,12 @@ t to table 't1', the corresponding command would be: EOF end - def command(table, row, column = nil, + def command(table, row, column, timestamp = org.apache.hadoop.hbase.HConstants::LATEST_TIMESTAMP, args = {}) delete(table(table), row, column, timestamp, args) end - def delete(table, row, column = nil, + def delete(table, row, column, timestamp = org.apache.hadoop.hbase.HConstants::LATEST_TIMESTAMP, args = {}) format_simple_command do table._delete_internal(row, column, timestamp, args, false)