[resolved] How to Get Row count from Hive Table

Highlighted
Five Stars

[resolved] How to Get Row count from Hive Table

Hi I am very new to Talend BIG Data and developing Archiving job, so i have to do reconciliation of source file records with archive tables. can any one suggest me how get the row count? 
I may not know if table is exist or not. 

Accepted Solutions
Five Stars

Re: [resolved] How to Get Row count from Hive Table

I have resolve this problem using below two modifications. 

I used tHiveInput instead tHiveRow. 
And pass "Select count(*) from"+context.TableName. 

All Replies
Moderator

Re: [resolved] How to Get Row count from Hive Table

Hi umeshrakhe,

Thanks for posting that you resolved it by yourself. Could you please share your solution with us?

Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Five Stars

Re: [resolved] How to Get Row count from Hive Table

I have resolve this problem using below two modifications. 

I used tHiveInput instead tHiveRow. 
And pass "Select count(*) from"+context.TableName. 

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Put Massive Amounts of Data to Work

Learn how to make your data more available, reduce costs and cut your build time

Watch Now

How OTTO Utilizes Big Data to Deliver Personalized Experiences

Read about OTTO's experiences with Big Data and Personalized Experiences

Blog

Talend Integration with Databricks

Take a look at this video about Talend Integration with Databricks

Watch Now