Explain count_star?



Explain count_star?..

Answer / Hari Keshwar Prasad

"count_star" in Apache Pig is a UDF (User Defined Function) used to calculate the number of non-null values or star-level cardinality of a schema. It's particularly useful for counting the number of rows or tuples in a relation when the schema isn't known beforehand.nnExample usage:n`DEFINE count_star UDF(); data = FOREACH input_data GENERATE count_star();`

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apache Pig Interview Questions

Is the keyword ‘FUNCTIONAL’ a User Defined Function (UDF)?

1 Answers  


What is a bag in apache pig?

1 Answers  


Bag in pig ?

1 Answers  


Explain different execution modes available in Pig?

1 Answers  


Differentiate between Pig Latin and Pig Engine?

1 Answers  


Why do we need Pig?

1 Answers  


What are the execution modes in the apache pig?

1 Answers  


What is a UDF in Pig?

1 Answers  


Explain bagtostring in pig?

1 Answers  


What is the difference between Pig and SQL?

1 Answers  


Explain pig architecture?

1 Answers  


What is BloomMapFile?

1 Answers  


Categories