Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Error in tHiveInput Component: java.sql.SQLException: Could not create

Scenario: I have to create table from select statment using Hive.

I am able create staging table in Hive Named as temp_customer. 
Loaded data using tHiveLoad component to the temp_customer table. 
Generated Dynamic query for "Create table customer as Select * from temp_customer where country='USA'" 
Executed this query using tHiveRow have the same error as shown below then i used tHiveInput still it is giving same error. 

Error: 
Exception in component tHiveInput_4
java.sql.SQLException: Could not create ResultSet: Error: type expected at the position 4 of but 'varchar' is found.

Debug: 

temp_customer created with data. 
Customers tables created with filtered records. 
but still further process not executed because of this error can any one suggest what is the issue? it is bug or this type of query not supported? if not then how come table created with filter data?
Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Load this " hive_0.12.0exe.jar" jar explicitly and everything works fine. 

View solution in original post

3 Replies
Anonymous
Not applicable
Author

What distribution of Hadoop are you using?
and
What jars did you install?
Anonymous
Not applicable
Author

I am using "Apache" Distribution and Hive version is " Apache 1.0.0(Hive 0.9.0). 
As far as jars concern it has been downloaded when I started Big Data studio. Do you want the list jar for Apache & Hive? 
Anonymous
Not applicable
Author

Load this " hive_0.12.0exe.jar" jar explicitly and everything works fine.