вы должны получить пустую строку, не ноль.
hive> create temporary table t1 as select '' as c1,
' ' as c2; --- ' ' space
Time taken: 0.145 seconds, Fetched: 1 row(s)
hive> select concat('|',c1, '|', c2, '|') from t1;
OK
|| |
Time taken: 0.319 seconds, Fetched: 1 row(s)
hive> insert into t1 values (' ', ' '); -- multiple spaces
Time taken: 13.6 seconds
hive> select concat('|',c1, '|', c2, '|') from t1;
OK
|| |
| | |
Time taken: 0.136 seconds, Fetched: 2 row(s)