...

Big Data - Apache Pig

Back to Course

Lesson Description


Lession - #462 Apache pig Latin Concept


The Pig Latin is a data flow language utilized by Apache Pig to analyze the data in Hadoop. A textual language abstracts the programming from the Java MapReduce idiom into a notation.

Pig Latin Statement

The Pig Latin statements are utilized to handle the information. An administrator acknowledges a connection as an info and produces one more connection as a result.

  • It can traverse different lines.
  • Every assertion should end with a semi-colon.
  • It might incorporate expression and patterns.
  • By default, these assertions are handled utilizing multi-question execution

    Pig Latin Conventions

    ( >
    The parenthesis can enclose one or more items. It can also be used to indicate the tuple data type.

    Example - (10, xyz, (3,6,9>
    >


    [ ] The straight brackets can enclose one or more items. It can also be used to indicate the map data type.

    Example - [INNER | OUTER]

    { } The curly brackets enclose two or more items. It can also be used to indicate the bag data type

    Example - { block | nested_block }

    ... The horizontal ellipsis points indicate that you can repeat a portion of the code.

    Example - cat path [path ...]