

{"id":4655,"date":"2017-11-03T08:45:54","date_gmt":"2017-11-03T08:45:54","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=4655"},"modified":"2017-11-03T08:45:54","modified_gmt":"2017-11-03T08:45:54","slug":"pig-latin-operators-statements","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/pig-latin-operators-statements\/","title":{"rendered":"Pig Latin Operators and Statements &#8211; A Complete Guide"},"content":{"rendered":"<p>In our previous blog, we have seen <strong>Apache Pig introduction<\/strong> and pig architecture in detail. Now this article covers the basics of Pig Latin Operators such as comparison, general and relational operators.<\/p>\n<p>Moreover, we will also cover the type construction operators as well. We will also discuss the Pig Latin statements in this blog with an example.<\/p>\n<div id=\"attachment_42803\" style=\"width: 1210px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/11\/pig-latin-operators-768x402-1.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-42803\" class=\"size-full wp-image-42803\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/11\/pig-latin-operators-768x402-1.jpg\" alt=\"Pig Latin Operators and Statements - A Complete Guide\" width=\"1200\" height=\"628\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/11\/pig-latin-operators-768x402-1.jpg 1200w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/11\/pig-latin-operators-768x402-1-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/11\/pig-latin-operators-768x402-1-300x157.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/11\/pig-latin-operators-768x402-1-768x402.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/11\/pig-latin-operators-768x402-1-1024x536.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/11\/pig-latin-operators-768x402-1-520x272.jpg 520w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><p id=\"caption-attachment-42803\" class=\"wp-caption-text\">Pig Latin Operators and Statements &#8211; A Complete Guide<\/p><\/div>\n<h2>What is Pig Latin?<\/h2>\n<p><span style=\"font-weight: 400\"><em><strong>Pig Latin<\/strong> is the language which analyzes the data in <strong>Hadoop<\/strong> using Apache Pig<\/em>. An interpreter layer transforms Pig Latin statements into<strong> MapReduce jobs<\/strong>. Then Hadoop process these jobs further. Pig Latin is a simple language with SQL like semantics. <\/span><\/p>\n<p><span style=\"font-weight: 400\">Anyone can use it in a productive manner. Latin has a rich set of functions. These functions exhibit data manipulation. Furthermore, they are extensible by writing user-defined functions (UDF) using java.<\/span><\/p>\n<h2>Pig Latin Operators<\/h2>\n<h3>a. Arithmetic Operators<\/h3>\n<p><span style=\"font-weight: 400\">These pig latin operators are basic mathematical operators.<\/span><span style=\"font-weight: 400\">\u00a0\u00a0<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td><b>Operator<\/b><\/td>\n<td style=\"text-align: left\"><b>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Description<\/b><\/td>\n<td><b>\u00a0\u00a0\u00a0 Example<\/b><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">+<\/span><\/td>\n<td style=\"text-align: left\"><span style=\"font-weight: 400\">Addition \u2212 It add values on any single side of the operator.<\/span><\/td>\n<td>\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">if a= 10, b= 30,<\/span><\/p>\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">a + b gives 40<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"text-align: center\"><span style=\"font-weight: 400\">\u2212<\/span><\/p>\n<\/td>\n<td style=\"text-align: left\"><span style=\"font-weight: 400\">Subtraction \u2212 It reduces the value of right hand operand from left hand operand.<\/span><\/td>\n<td>\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">if a= 40, b= 30,<\/span><\/p>\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">a-b gives 10<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"text-align: center\"><span style=\"font-weight: 400\">*<\/span><\/p>\n<\/td>\n<td style=\"text-align: left\"><span style=\"font-weight: 400\">Multiplication \u2212 This operation multiplies the values on either side of the operator.<\/span><\/td>\n<td>\n<p style=\"text-align: center\"><span style=\"font-weight: 400\">a * b gives you 1200<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"text-align: center\"><span style=\"font-weight: 400\">\/<\/span><\/p>\n<\/td>\n<td style=\"text-align: left\"><span style=\"font-weight: 400\">Division \u2212 This operator divides the left hand operand by right hand operand.<\/span><\/td>\n<td>\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">if a= 40, b= 20,<\/span><\/p>\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">b \/ a results to 2<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"text-align: center\"><span style=\"font-weight: 400\">%<\/span><\/p>\n<\/td>\n<td style=\"text-align: left\"><span style=\"font-weight: 400\">Modulus \u2212 It divides the left hand operand by right hand operand with remainder as result.<\/span><\/td>\n<td>\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">if a= 40, b= 30,<\/span><\/p>\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">b%a results to 10<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"text-align: center\"><span style=\"font-weight: 400\">? :<\/span><\/p>\n<\/td>\n<td style=\"text-align: center\">\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">Bincond \u2212 It evaluates the Boolean operators. Moreover, it has three operands below.<\/span><\/p>\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">variable x = (expression) ? value1 if true : value2 if false.<\/span><\/p>\n<\/td>\n<td>\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">b = (a == 1)? 40: 20;<\/span><\/p>\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">if a = 1 the value is 40.<\/span><\/p>\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">if a!=1 the value is 20.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"text-align: center\"><span style=\"font-weight: 400\">CASE<\/span><\/p>\n<p style=\"text-align: center\"><span style=\"font-weight: 400\">WHEN<\/span><\/p>\n<p style=\"text-align: center\"><span style=\"font-weight: 400\">THEN<\/span><\/p>\n<p style=\"text-align: center\"><span style=\"font-weight: 400\">ELSE END<\/span><\/p>\n<\/td>\n<td style=\"text-align: left\"><span style=\"font-weight: 400\">Case \u2212 This operator is equal to the nested bincond.<\/span><\/td>\n<td>\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">CASE f2 % 4<\/span><\/p>\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">WHEN 0 THEN &#8216;even&#8217;<\/span><\/p>\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">WHEN 1 THEN &#8216;odd&#8217;<\/span><\/p>\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">END<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>b. Comparison Operators<\/h3>\n<p><span style=\"font-weight: 400\">This table contains the comparison operators of Pig Latin.<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<p style=\"text-align: center\"><b>Operator<\/b><\/p>\n<\/td>\n<td style=\"text-align: left\"><b>\u00a0 \u00a0 \u00a0 \u00a0 Description<\/b><\/td>\n<td>\n<p style=\"text-align: left\"><b>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0Example<\/b><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"text-align: center\"><span style=\"font-weight: 400\">==<\/span><\/p>\n<\/td>\n<td style=\"text-align: left\"><span style=\"font-weight: 400\">Equal \u2212 This operator checks whether the values of two operands are equal or not. If yes, then the condition becomes true.<\/span><\/td>\n<td>\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">If a=10, b=20, then (a = b) is not true<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"text-align: center\"><span style=\"font-weight: 400\">!=<\/span><\/p>\n<\/td>\n<td style=\"text-align: left\"><span style=\"font-weight: 400\">Not Equal \u2212 Checks the values of two operands are equal or not. If the values are equal, then condition becomes false else true.<\/span><\/td>\n<td>\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">If a=10, b=20, then (a != b) is true<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"text-align: center\"><span style=\"font-weight: 400\">&gt;<\/span><\/p>\n<\/td>\n<td style=\"text-align: left\"><span style=\"font-weight: 400\">Greater than \u2212 It checks whether the right operand value is greater than that of the right operand. If yes, then the condition becomes true.<\/span><\/td>\n<td>\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">If a=10, b=20, then(a &gt; b) is not true.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"text-align: center\"><span style=\"font-weight: 400\">&lt;<\/span><\/p>\n<\/td>\n<td style=\"text-align: left\"><span style=\"font-weight: 400\">Less than \u2212 This operator checks the value of the left operand is less than the right operand. If condition fulfills, then it returns true.<\/span><\/td>\n<td>\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">(a &lt; b) is true, if a=10, b=20. <\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"text-align: center\"><span style=\"font-weight: 400\">&gt;=<\/span><\/p>\n<\/td>\n<td style=\"text-align: left\"><span style=\"font-weight: 400\">Greater than or equal to \u2212 It checks the value of the left operand with right hand. It checks whether it is greater or equal to the right operand. If yes, then it returns true.<\/span><\/td>\n<td>\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">If a=20, b=50, true(a &gt;= b) is not true.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"text-align: center\"><span style=\"font-weight: 400\">&lt;=<\/span><\/p>\n<\/td>\n<td style=\"text-align: left\"><span style=\"font-weight: 400\">Less than or equal to \u2212 The value of the left operand is less than or equal to that of the right operand. Then the condition still returns true.<\/span><\/td>\n<td>\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">If a=20, b=20, (a &lt;= b) is true.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"text-align: center\"><span style=\"font-weight: 400\">matches<\/span><\/p>\n<\/td>\n<td style=\"text-align: left\"><span style=\"font-weight: 400\">Pattern matching \u2212 This checks the string in the left-hand matches with the constant in the RHS.<\/span><\/td>\n<td style=\"text-align: left\"><span style=\"font-weight: 400\">f1 matches &#8216;.*df.*&#8217;<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>c. Type Construction Operators<\/h3>\n<p><span style=\"font-weight: 400\">The above table describes the Type construction pig latin operators.<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td style=\"text-align: center\"><b>Operator<\/b><\/td>\n<td style=\"text-align: left\"><b>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Description<\/b><\/td>\n<td style=\"text-align: left\"><b>\u00a0\u00a0\u00a0\u00a0 Example<\/b><\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"text-align: center\"><span style=\"font-weight: 400\">()<\/span><\/p>\n<\/td>\n<td style=\"text-align: left\"><span style=\"font-weight: 400\">Tuple constructor operator \u2212 This operator constructs a tuple.<\/span><\/td>\n<td>\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">(Dataflair, 20)<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"text-align: center\"><span style=\"font-weight: 400\">{}<\/span><\/p>\n<\/td>\n<td style=\"text-align: left\"><span style=\"font-weight: 400\">Bag constructor operator \u2212 To construct a bag, we use this operator.<\/span><\/td>\n<td>\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">{(Dataflair, 10), (training, 25)}<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"text-align: center\"><span style=\"font-weight: 400\">[]<\/span><\/p>\n<\/td>\n<td style=\"text-align: left\"><span style=\"font-weight: 400\">Map constructor operator \u2212 This operator construct a tuple.<\/span><\/td>\n<td>\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">[name#DF, age#12]<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>d.\u00a0 Relational Operations<\/h3>\n<p><span style=\"font-weight: 400\">The above table describes the relational operators of Pig Latin.<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<p style=\"text-align: center\"><strong>Operator<\/strong><\/p>\n<\/td>\n<td>\n<p style=\"text-align: center\"><strong>Description<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p style=\"text-align: left\"><strong>Loading and Storing<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"text-align: center\"><span style=\"font-weight: 400\">LOAD<\/span><\/p>\n<\/td>\n<td>\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">It loads the data from a file system into a relation.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"text-align: center\"><span style=\"font-weight: 400\">STORE<\/span><\/p>\n<\/td>\n<td>\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">It stores a relation to the file system (local\/HDFS).<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p style=\"text-align: left\"><b>Filtering<\/b><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"text-align: center\"><span style=\"font-weight: 400\">FILTER<\/span><\/p>\n<\/td>\n<td style=\"text-align: left\"><span style=\"font-weight: 400\">There is a removal of unwanted rows from a relation.<\/span><\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"text-align: center\"><span style=\"font-weight: 400\">DISTINCT<\/span><\/p>\n<\/td>\n<td style=\"text-align: left\"><span style=\"font-weight: 400\">We can remove duplicate rows from a relation by this operator.<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">FOREACH, GENERATE<\/span><\/td>\n<td>\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">It transforms the data based on the columns of data.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">STREAM<\/span><\/td>\n<td>\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">To transform a relation using an external program.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p style=\"text-align: left\"><b>Grouping and Joining<\/b><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"text-align: center\"><span style=\"font-weight: 400\">JOIN<\/span><\/p>\n<\/td>\n<td style=\"text-align: left\"><span style=\"font-weight: 400\">We can join two or more relations.<\/span><\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"text-align: center\"><span style=\"font-weight: 400\">COGROUP<\/span><\/p>\n<\/td>\n<td>\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">There is a grouping of the data into two or more relations.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">GROUP<\/span><\/td>\n<td>\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">It groups the data in a single relation.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"text-align: center\"><span style=\"font-weight: 400\">CROSS<\/span><\/p>\n<\/td>\n<td>\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">We can create the cross product of two or more relations.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p style=\"text-align: left\"><b>Sorting<\/b><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"text-align: center\"><span style=\"font-weight: 400\">ORDER<\/span><\/p>\n<\/td>\n<td style=\"text-align: left\"><span style=\"font-weight: 400\">It arranges a relation in an order based on one or more fields. <\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">LIMIT<\/span><\/td>\n<td>\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">We can get a particular number of tuples from a relation.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p style=\"text-align: left\"><b>Combining and Splitting<\/b><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"text-align: center\"><span style=\"font-weight: 400\">UNION<\/span><\/p>\n<\/td>\n<td style=\"text-align: left\"><span style=\"font-weight: 400\">We can combine two or more relations into one relation.<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">SPLIT<\/span><\/td>\n<td>\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">To split a single relation into more relations.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<p style=\"text-align: left\"><b>Diagnostic Operators<\/b><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"text-align: center\"><span style=\"font-weight: 400\">DUMP<\/span><\/p>\n<\/td>\n<td style=\"text-align: left\"><span style=\"font-weight: 400\">It prints the content of a relationship through the console.<\/span><\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"text-align: center\"><span style=\"font-weight: 400\">DESCRIBE<\/span><\/p>\n<\/td>\n<td style=\"text-align: left\"><span style=\"font-weight: 400\">It describes the schema of a relation.<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">EXPLAIN<\/span><\/td>\n<td>\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">We can view the logical, physical execution plans to evaluate a relation.<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">ILLUSTRATE<\/span><\/td>\n<td>\n<p style=\"text-align: left\"><span style=\"font-weight: 400\">It displays all the execution steps as the series of statements.<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Pig Latin \u2013 Statements<\/h2>\n<p><span style=\"font-weight: 400\">The statements are the basic constructs while processing data using Pig Latin.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The statements can work with relations including expressions and schemas.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">However, every statement terminate with a semicolon (;).<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">We will perform different operations using Pig Latin operators.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Pig Latin statements inputs a relation and produces some other relation as output. <\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">The semantic checking initiates as we enter a Load step in the Grunt shell. We use the Dump operator to view the contents of the schema. The MapReduce job initiates for loading the data into the file system. It performs only after the dump operation.<\/span><\/li>\n<\/ul>\n<p><b> For Example<\/b><br \/>\n<span style=\"font-weight: 400\"> Following is a Pig Latin statement, it loads the data to Apache Pig.<\/span><br \/>\n[php]grunt&gt; Sample_data = LOAD &#8216;sample_data.txt&#8217; USING PigStorage(&#8216;,&#8217;)as<br \/>\n( id:int, name:chararray, contact:chararray, city:chararray );[\/php]<\/p>\n<p>So, this was all in Pig Latin Tutorial. Hope you like our explanation.<\/p>\n<h2>Conclusion<\/h2>\n<p><span style=\"font-weight: 400\">Thus, in this Pig Latin Tutorial, we discussed the Pig Latin language analyzes the data in Hadoop. Also, it transforms the statements into further MapReduce jobs. It also has a certain set of data manipulation functions. At last, the Pig Latin statements are the constructs for data processing.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In our previous blog, we have seen Apache Pig introduction and pig architecture in detail. Now this article covers the basics of Pig Latin Operators such as comparison, general and relational operators. Moreover, we&#46;&#46;&#46;<\/p>\n","protected":false},"author":7,"featured_media":42803,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[40],"tags":[863,9493,9513,9514,15845],"class_list":["post-4655","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pig","tag-apache-pig","tag-pig","tag-pig-latin-operators","tag-pig-latin-statements","tag-what-is-pig-latin"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Pig Latin Operators and Statements - A Complete Guide - DataFlair<\/title>\n<meta name=\"description\" content=\"Pig latin Operators, what is pig latin, operators of pig latin-Arithmetic,relational,comparison, Type Construction,pig latin statements, Pig latin tutorial\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/pig-latin-operators-statements\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Pig Latin Operators and Statements - A Complete Guide - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Pig latin Operators, what is pig latin, operators of pig latin-Arithmetic,relational,comparison, Type Construction,pig latin statements, Pig latin tutorial\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/pig-latin-operators-statements\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-11-03T08:45:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/11\/pig-latin-operators-768x402-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Pig Latin Operators and Statements - A Complete Guide - DataFlair","description":"Pig latin Operators, what is pig latin, operators of pig latin-Arithmetic,relational,comparison, Type Construction,pig latin statements, Pig latin tutorial","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/pig-latin-operators-statements\/","og_locale":"en_US","og_type":"article","og_title":"Pig Latin Operators and Statements - A Complete Guide - DataFlair","og_description":"Pig latin Operators, what is pig latin, operators of pig latin-Arithmetic,relational,comparison, Type Construction,pig latin statements, Pig latin tutorial","og_url":"https:\/\/data-flair.training\/blogs\/pig-latin-operators-statements\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2017-11-03T08:45:54+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/11\/pig-latin-operators-768x402-1.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/pig-latin-operators-statements\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/pig-latin-operators-statements\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/beb0cab24b7aa54423a3b50e669a9dcd"},"headline":"Pig Latin Operators and Statements &#8211; A Complete Guide","datePublished":"2017-11-03T08:45:54+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/pig-latin-operators-statements\/"},"wordCount":1042,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/pig-latin-operators-statements\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/11\/pig-latin-operators-768x402-1.jpg","keywords":["apache pig","pig","Pig Latin Operators","Pig latin Statements","What is Pig Latin"],"articleSection":["Pig Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/pig-latin-operators-statements\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/pig-latin-operators-statements\/","url":"https:\/\/data-flair.training\/blogs\/pig-latin-operators-statements\/","name":"Pig Latin Operators and Statements - A Complete Guide - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/pig-latin-operators-statements\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/pig-latin-operators-statements\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/11\/pig-latin-operators-768x402-1.jpg","datePublished":"2017-11-03T08:45:54+00:00","description":"Pig latin Operators, what is pig latin, operators of pig latin-Arithmetic,relational,comparison, Type Construction,pig latin statements, Pig latin tutorial","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/pig-latin-operators-statements\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/pig-latin-operators-statements\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/pig-latin-operators-statements\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/11\/pig-latin-operators-768x402-1.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/11\/pig-latin-operators-768x402-1.jpg","width":1200,"height":628,"caption":"Pig Latin Operators and Statements - A Complete Guide"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/pig-latin-operators-statements\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Pig Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/pig\/"},{"@type":"ListItem","position":3,"name":"Pig Latin Operators and Statements &#8211; A Complete Guide"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/beb0cab24b7aa54423a3b50e669a9dcd","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c322416204232f4dd97ef3901b0a499a5d34d7ba7fe333f4bfe53a907873d293?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c322416204232f4dd97ef3901b0a499a5d34d7ba7fe333f4bfe53a907873d293?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c322416204232f4dd97ef3901b0a499a5d34d7ba7fe333f4bfe53a907873d293?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team specializes in creating clear, actionable content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Backed by industry expertise, we make learning easy and career-oriented for beginners and pros alike.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam3\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/4655","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=4655"}],"version-history":[{"count":0,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/4655\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/42803"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=4655"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=4655"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=4655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}