Apache Pig Describe Operator - Apache Pig

What is Apache Pig - Describe Operator?

The describe operator is used to explain about the view the schema of a relation.

Syntax

Here’s the syntax of the describe operator:

Example

Assume we have a file student_data.txt in HDFS with the following content.
And we have read it into a relation student using the LOAD operator as shown below.
Let’s discuss about the relation named student and verify the schema as shown below.
Output
After executing the above above Pig Latin statement, you will get below output.

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Apache Pig Topics