How to fetch particular columns in pig?
Answer / Devki Nandan Sharma
To fetch particular columns in Pig, you can use the AS alias along with the column name during the PROJECT or SELECT statement. For example: SELECT col1 AS column1, col2 AS column2 FROM table.
| Is This Answer Correct ? | 0 Yes | 0 No |
Highlight the key differences between MapReduce and Apache Pig?
What co-group does in Pig?
Explain about the execution plans of a pig script?<Br> or<br> differentiate between the logical and physical plan of an apache pig script?
Is the keyword ‘FUNCTIONAL’ a User Defined Function (UDF)?
While writing evaluate UDF, which method has to be overridden?
What is the difference between Pig and MapReduce?
What is the difference between pig and hive?
How to load data in pig?
Is the keyword ‘DEFINE’ as a function name?
What is hadoop pig?
What do you understand by an inner bag and outer bag in Pig?
How Pig programming gets converted into MapReduce jobs?
Apache Hadoop (394)
MapReduce (354)
Apache Hive (345)
Apache Pig (225)
Apache Spark (991)
Apache HBase (164)
Apache Flume (95)
Apache Impala (72)
Apache Cassandra (392)
Apache Mahout (35)
Apache Sqoop (82)
Apache ZooKeeper (65)
Apache Ambari (93)
Apache HCatalog (34)
Apache HDFS Hadoop Distributed File System (214)
Apache Kafka (189)
Apache Avro (26)
Apache Presto (15)
Apache Tajo (26)
Hadoop General (407)