Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Impala 0.3
-
None
-
None
Description
I see different output when LPAD is used in hive and impala,
here's my table definition,
[localhost:21000] > describe accesslog;
sessionid string
cookie string
country string
browser string
......
Here's output from hive
hive> select (lpad(sessionid,2,'0')) from accesslog;
OK
01
01
02
02
03
03
04
04
Here's output from Impala,
[localhost:21000] > select (lpad(sessionid,2,'0')) from accesslog;
01
011
0112
01122
011223
0112233
01122334
011223344