From ec13b28c4ad8473b34ba1531a45c2dc5aaff4551 Mon Sep 17 00:00:00 2001 From: dujie Date: Fri, 26 Jul 2024 10:59:12 +0800 Subject: [PATCH] [hotfix-1906][hbase]#1906 resolve hbase unit test failed --- .../chunjun/connector/hbase/converter/HBaseSerdeTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chunjun-connectors/chunjun-connector-hbase-base/src/test/java/com/dtstack/chunjun/connector/hbase/converter/HBaseSerdeTest.java b/chunjun-connectors/chunjun-connector-hbase-base/src/test/java/com/dtstack/chunjun/connector/hbase/converter/HBaseSerdeTest.java index 583da3313c..05302d608e 100644 --- a/chunjun-connectors/chunjun-connector-hbase-base/src/test/java/com/dtstack/chunjun/connector/hbase/converter/HBaseSerdeTest.java +++ b/chunjun-connectors/chunjun-connector-hbase-base/src/test/java/com/dtstack/chunjun/connector/hbase/converter/HBaseSerdeTest.java @@ -43,7 +43,9 @@ public void setUp() { tableSchema = new HBaseTableSchema(); tableSchema.setRowKey("stu:id", Integer.class); tableSchema.addColumn("stu", "name", String.class); - serde = new HBaseSerde(tableSchema, new HBaseConfig()); + HBaseConfig hBaseConfig = new HBaseConfig(); + hBaseConfig.setNullStringLiteral("null"); + serde = new HBaseSerde(tableSchema, hBaseConfig); } @Test