Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HiveStreamingDataSource format writes empty string for NULL value in Hive Table #269

Open
krvikash opened this issue Jun 7, 2019 · 0 comments

Comments

@krvikash
Copy link

krvikash commented Jun 7, 2019

I am trying to write from Kafka Source to Hive Target. I am using "com.hortonworks.spark.sql.hive.llap.streaming.HiveStreamingDataSource" format to write data into Hive table. Table is ORC format and fully transactional. I am using HDP 3.1 cluster.

But What i see that for every NULL value of string data type is written as empty in hive table. Is it the bug or is it the expected behavior?

Attaching Standalone spark program
standalone.txt

Create Table Command : create table hive_target (id int, name varchar(255), age int, timestamp1 timestamp);

Table Properties :
table_props

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant