We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f82c757 + e31035b commit 9252830Copy full SHA for 9252830
1 file changed
hbase/hbase-sink/src/main/java/com/dtstack/flink/sql/sink/hbase/HbaseOutputFormat.java
@@ -215,14 +215,13 @@ private Put getPutByRow(Row record) {
215
Put put = new Put(rowKey.getBytes());
216
for (int i = 0; i < record.getArity(); ++i) {
217
Object fieldVal = record.getField(i);
218
- byte[] val = null;
219
if (fieldVal != null) {
220
- val = fieldVal.toString().getBytes();
221
- }
222
- byte[] cf = families[i].getBytes();
223
- byte[] qualifier = qualifiers[i].getBytes();
+ byte[] val = fieldVal.toString().getBytes();
+ byte[] cf = families[i].getBytes();
+ byte[] qualifier = qualifiers[i].getBytes();
224
225
- put.addColumn(cf, qualifier, val);
+ put.addColumn(cf, qualifier, val);
+ }
226
}
227
return put;
228
0 commit comments