I have a question , probably a basic one . I would like to give null value to a column whose data type BIGINT . Is that possible?
Asked
Active
Viewed 6,851 times
2 Answers
2
Yes it's possible and easy to check:
hive> create table test_null_bigint(col bigint);
insert into table test_null_bigint values(null);
hive> select * from test_null_bigint;
OK
NULL
Time taken: 21.556 seconds, Fetched: 1 row(s)

leftjoin
- 36,950
- 8
- 57
- 116
0
According to the Apache Hive documentation, you should be able to simply leave the value empty.:
Missing values are represented by the special value NULL.
Have you tried anything yet? Are you running into any issues?

Jerod Johnson
- 764
- 7
- 15
-
I gave the empty value for the big int column and it's throwing error . – Sep 21 '16 at 13:14
-
1What error? Please edit your question to include what you're doing and the error message you're receiving. – Jerod Johnson Sep 21 '16 at 13:16