{"id":215,"date":"2021-07-12T08:49:19","date_gmt":"2021-07-12T08:49:19","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=215"},"modified":"2021-09-14T11:14:30","modified_gmt":"2021-09-14T11:14:30","slug":"what-is-the-purpose-of-outputschema-decorator-in-python-udf-when-using-in-apache-pig","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/apache-pig\/what-is-the-purpose-of-outputschema-decorator-in-python-udf-when-using-in-apache-pig\/","title":{"rendered":"What is the purpose of @outputSchema decorator in Python UDF when using in Apache Pig ?"},"content":{"rendered":"<div class=\"TextHeading\">\n<div class=\"hddn\">\n<h2 id=\"specifying-the-udf-output-schema\" class=\"color-green\" style=\"text-align: justify;\">Specifying the UDF output schema<\/h2>\n<\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>A UDF has input and output. Here is the different ways you can specify the output format of a Python UDF through use of the outputSchema decorator.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"TextHeading\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<h2 id=\"sample-code\" class=\"color-green\">Sample Code:<\/h2>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-javascript code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-javascript code-embed-code\"># the original udf<br\/># it returns a single chararray (that&#039;s PigLatin for String)<br\/>@outputSchema(&#039;word:chararray&#039;)<br\/>def hi_world():<br\/>    return &quot;hello world&quot;<br\/>    <br\/># this one returns a Python tuple. Pig recognises the first element <br\/># of the tuple as a chararray like before, and the next one as a <br\/># long (a kind of integer)<br\/>@outputSchema(&quot;word:chararray,number:long&quot;)<br\/>def hi_everyone():<br\/>  return &quot;hi there&quot;, 15<br\/><br\/>#we can use outputSchema to define nested schemas too, here is a bag of tuples<br\/>@outputSchema(&#039;some_bag:bag{t:(field_1:chararray, field_2:int)}&#039;)<br\/>def bag_udf():<br\/>    return [<br\/>        (&#039;hi&#039;,1000),<br\/>        (&#039;there&#039;,2000),<br\/>        (&#039;bill&#039;,0)<br\/>    ]<br\/><br\/>#and here is a map<br\/>@outputSchema(&#039;something_nice:map[]&#039;)<br\/>def my_map_maker():<br\/>    return {&quot;a&quot;:&quot;b&quot;, &quot;c&quot;:&quot;d&quot;, &quot;e&quot;,&quot;f&quot;}<\/code><\/pre> <\/div>\n<\/div>\n<\/div>\n<p style=\"text-align: justify;\">OutputSchema can be used to imply that a function outputs one or a combination of basic types. Those types are:<\/p>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>chararray: like a string<\/li>\n<li>bytearray: a bunch of bytes in a row. Like a string but not as human friendly<\/li>\n<li>long: long integer<\/li>\n<li>int: normal integer<\/li>\n<li>double: floating point number<\/li>\n<li>datetime<\/li>\n<li>boolean<\/li>\n<li>No schema is specified;then the Pig assumes that the UDF outputs a bytearray.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"hddn\" style=\"text-align: justify;\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-medium\" src=\"https:\/\/cdn.wikitechy.com\/interview-questions\/apache-pig\/apache-pig-udf.png\" alt=\"Apache Pig UDF\" width=\"700\" height=\"476\" \/><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Answer:A UDF has input and output. Here is the different ways you can specify the output format of a Python UDF through use of the outputSchema decorator.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[456],"tags":[195,365,677,491,203,199,214,209,488,205,485,486,222,484,490,196,286,207,487,679,217,680,508,517,518,519,468,682,681,530,535,536,489,675,676,683,678,493,367,483,492,200,197,280,364,285],"class_list":["post-215","post","type-post","status-publish","format-standard","hentry","category-apache-pig","tag-accenture-interview-questions-and-answers","tag-amazon-development-centre-india-pvt-ltd-interview-questions-and-answers","tag-apache-pig-python","tag-applied-materials-interview-questions-and-answers","tag-capgemini-interview-questions-and-answers","tag-casting-networks-india-pvt-limited-interview-questions-and-answers","tag-cgi-group-inc-interview-questions-and-answers","tag-collabera-technologies-interview-questions-and-answers","tag-crisil-limited-interview-questions-and-answers","tag-dell-international-services-india-pvt-ltd-interview-questions-and-answers","tag-ernst-young-interview-questions-and-answers","tag-exide-industries-interview-questions-and-answers","tag-flipkart-interview-questions-and-answers","tag-genpact-interview-questions-and-answers","tag-hexaware-technologies-interview-questions-and-answers","tag-ibm-interview-questions-and-answers","tag-lt-infotech-interview-questions-and-answers","tag-mphasis-interview-questions-and-answers","tag-myntra-designs-pvt-ltd-interview-questions-and-answers","tag-outputschema-pig","tag-peoplestrong-interview-questions-and-answers","tag-pig-and-python-analogy","tag-pig-interview-questions-and-answers","tag-pig-interview-questions-and-answers-for-experienced","tag-pig-interview-questions-for-experienced","tag-pig-interview-questions-for-experienced-and-freshers","tag-pig-practice-questions","tag-pig-python-udf-bag-input","tag-pig-python-udf-example","tag-pig-udf-load-function-example","tag-pig-udf-output-schema","tag-pig-udf-return-tuple","tag-prokarma-softech-nterview-questions-and-answers","tag-python-udf-example","tag-python-udf-hive","tag-python-udf-pig-tuple","tag-python-udf-spark","tag-quintiles-interview-questions-and-answers","tag-rbs-india-development-centre-pvt-ltd-interview-questions-and-answers","tag-reliance-industries-ltd-interview-questions-and-answers","tag-syngene-international-limited-interview-questions-and-answers","tag-tech-mahindra-interview-questions-and-answers","tag-unitedhealth-group-interview-questions-and-answers","tag-virtusa-consulting-services-pvt-ltd-interview-questions-and-answers","tag-wells-fargo-interview-questions-and-answers","tag-xoriant-solutions-pvt-ltd-interview-questions-and-answers"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What is the purpose of @outputSchema decorator in Python UDF<\/title>\n<meta name=\"description\" content=\"What is the purpose of @outputSchema decorator in Python UDF when using in Apache Pig ? - pig interview questions and answers\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wikitechy.com\/interview-questions\/apache-pig\/what-is-the-purpose-of-outputschema-decorator-in-python-udf-when-using-in-apache-pig\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is the purpose of @outputSchema decorator in Python UDF\" \/>\n<meta property=\"og:description\" content=\"What is the purpose of @outputSchema decorator in Python UDF when using in Apache Pig ? - pig interview questions and answers\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/apache-pig\/what-is-the-purpose-of-outputschema-decorator-in-python-udf-when-using-in-apache-pig\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-12T08:49:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-14T11:14:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.wikitechy.com\/interview-questions\/apache-pig\/apache-pig-udf.png\" \/>\n<meta name=\"author\" content=\"Editor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Editor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/apache-pig\\\/what-is-the-purpose-of-outputschema-decorator-in-python-udf-when-using-in-apache-pig\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/apache-pig\\\/what-is-the-purpose-of-outputschema-decorator-in-python-udf-when-using-in-apache-pig\\\/\"},\"author\":{\"name\":\"Editor\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\"},\"headline\":\"What is the purpose of @outputSchema decorator in Python UDF when using in Apache Pig ?\",\"datePublished\":\"2021-07-12T08:49:19+00:00\",\"dateModified\":\"2021-09-14T11:14:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/apache-pig\\\/what-is-the-purpose-of-outputschema-decorator-in-python-udf-when-using-in-apache-pig\\\/\"},\"wordCount\":284,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/apache-pig\\\/what-is-the-purpose-of-outputschema-decorator-in-python-udf-when-using-in-apache-pig\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cdn.wikitechy.com\\\/interview-questions\\\/apache-pig\\\/apache-pig-udf.png\",\"keywords\":[\"Accenture interview questions and answers\",\"Amazon Development Centre India Pvt Ltd interview questions and answers\",\"apache pig python\",\"Applied Materials interview questions and answers\",\"Capgemini interview questions and answers\",\"CASTING NETWORKS INDIA PVT LIMITED interview questions and answers\",\"CGI Group Inc interview questions and answers\",\"Collabera Technologies interview questions and answers\",\"CRISIL LIMITED interview questions and answers\",\"Dell International Services India Pvt Ltd interview questions and answers\",\"Ernst &amp; Young interview questions and answers\",\"Exide Industries interview questions and answers\",\"Flipkart interview questions and answers\",\"Genpact interview questions and answers\",\"Hexaware Technologies interview questions and answers\",\"IBM interview questions and answers\",\"L&amp;T Infotech interview questions and answers\",\"Mphasis interview questions and answers\",\"Myntra Designs Pvt. Ltd interview questions and answers\",\"outputschema pig\",\"PeopleStrong interview questions and answers\",\"pig and python analogy\",\"pig interview questions and answers\",\"pig interview questions and answers for experienced\",\"pig interview questions for experienced\",\"Pig Interview Questions for experienced and freshers\",\"pig practice questions\",\"pig python udf bag input\",\"pig python udf example\",\"pig udf load function example\",\"pig udf output schema\",\"pig udf return tuple\",\"Prokarma Softech nterview questions and answers\",\"python udf example\",\"python udf hive\",\"python udf pig tuple\",\"python udf spark\",\"Quintiles interview questions and answers\",\"RBS India Development Centre Pvt Ltd interview questions and answers\",\"Reliance Industries Ltd interview questions and answers\",\"Syngene International Limited interview questions and answers\",\"Tech Mahindra interview questions and answers\",\"UnitedHealth Group interview questions and answers\",\"Virtusa Consulting Services Pvt Ltd interview questions and answers\",\"Wells Fargo interview questions and answers\",\"Xoriant Solutions Pvt Ltd interview questions and answers\"],\"articleSection\":[\"Apache Pig\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/apache-pig\\\/what-is-the-purpose-of-outputschema-decorator-in-python-udf-when-using-in-apache-pig\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/apache-pig\\\/what-is-the-purpose-of-outputschema-decorator-in-python-udf-when-using-in-apache-pig\\\/\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/apache-pig\\\/what-is-the-purpose-of-outputschema-decorator-in-python-udf-when-using-in-apache-pig\\\/\",\"name\":\"What is the purpose of @outputSchema decorator in Python UDF\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/apache-pig\\\/what-is-the-purpose-of-outputschema-decorator-in-python-udf-when-using-in-apache-pig\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/apache-pig\\\/what-is-the-purpose-of-outputschema-decorator-in-python-udf-when-using-in-apache-pig\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cdn.wikitechy.com\\\/interview-questions\\\/apache-pig\\\/apache-pig-udf.png\",\"datePublished\":\"2021-07-12T08:49:19+00:00\",\"dateModified\":\"2021-09-14T11:14:30+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\"},\"description\":\"What is the purpose of @outputSchema decorator in Python UDF when using in Apache Pig ? - pig interview questions and answers\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/apache-pig\\\/what-is-the-purpose-of-outputschema-decorator-in-python-udf-when-using-in-apache-pig\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/apache-pig\\\/what-is-the-purpose-of-outputschema-decorator-in-python-udf-when-using-in-apache-pig\\\/#primaryimage\",\"url\":\"https:\\\/\\\/cdn.wikitechy.com\\\/interview-questions\\\/apache-pig\\\/apache-pig-udf.png\",\"contentUrl\":\"https:\\\/\\\/cdn.wikitechy.com\\\/interview-questions\\\/apache-pig\\\/apache-pig-udf.png\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#website\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/\",\"name\":\"Wikitechy\",\"description\":\"Interview Questions\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/4d5a581fb5470d1560324bddc5e8b757\",\"name\":\"Editor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"caption\":\"Editor\"},\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/author\\\/editor\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is the purpose of @outputSchema decorator in Python UDF","description":"What is the purpose of @outputSchema decorator in Python UDF when using in Apache Pig ? - pig interview questions and answers","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:\/\/www.wikitechy.com\/interview-questions\/apache-pig\/what-is-the-purpose-of-outputschema-decorator-in-python-udf-when-using-in-apache-pig\/","og_locale":"en_US","og_type":"article","og_title":"What is the purpose of @outputSchema decorator in Python UDF","og_description":"What is the purpose of @outputSchema decorator in Python UDF when using in Apache Pig ? - pig interview questions and answers","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/apache-pig\/what-is-the-purpose-of-outputschema-decorator-in-python-udf-when-using-in-apache-pig\/","og_site_name":"Wikitechy","article_published_time":"2021-07-12T08:49:19+00:00","article_modified_time":"2021-09-14T11:14:30+00:00","og_image":[{"url":"https:\/\/cdn.wikitechy.com\/interview-questions\/apache-pig\/apache-pig-udf.png","type":"","width":"","height":""}],"author":"Editor","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Editor","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.wikitechy.com\/interview-questions\/apache-pig\/what-is-the-purpose-of-outputschema-decorator-in-python-udf-when-using-in-apache-pig\/#article","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/apache-pig\/what-is-the-purpose-of-outputschema-decorator-in-python-udf-when-using-in-apache-pig\/"},"author":{"name":"Editor","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"headline":"What is the purpose of @outputSchema decorator in Python UDF when using in Apache Pig ?","datePublished":"2021-07-12T08:49:19+00:00","dateModified":"2021-09-14T11:14:30+00:00","mainEntityOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/apache-pig\/what-is-the-purpose-of-outputschema-decorator-in-python-udf-when-using-in-apache-pig\/"},"wordCount":284,"commentCount":0,"image":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/apache-pig\/what-is-the-purpose-of-outputschema-decorator-in-python-udf-when-using-in-apache-pig\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.wikitechy.com\/interview-questions\/apache-pig\/apache-pig-udf.png","keywords":["Accenture interview questions and answers","Amazon Development Centre India Pvt Ltd interview questions and answers","apache pig python","Applied Materials interview questions and answers","Capgemini interview questions and answers","CASTING NETWORKS INDIA PVT LIMITED interview questions and answers","CGI Group Inc interview questions and answers","Collabera Technologies interview questions and answers","CRISIL LIMITED interview questions and answers","Dell International Services India Pvt Ltd interview questions and answers","Ernst &amp; Young interview questions and answers","Exide Industries interview questions and answers","Flipkart interview questions and answers","Genpact interview questions and answers","Hexaware Technologies interview questions and answers","IBM interview questions and answers","L&amp;T Infotech interview questions and answers","Mphasis interview questions and answers","Myntra Designs Pvt. Ltd interview questions and answers","outputschema pig","PeopleStrong interview questions and answers","pig and python analogy","pig interview questions and answers","pig interview questions and answers for experienced","pig interview questions for experienced","Pig Interview Questions for experienced and freshers","pig practice questions","pig python udf bag input","pig python udf example","pig udf load function example","pig udf output schema","pig udf return tuple","Prokarma Softech nterview questions and answers","python udf example","python udf hive","python udf pig tuple","python udf spark","Quintiles interview questions and answers","RBS India Development Centre Pvt Ltd interview questions and answers","Reliance Industries Ltd interview questions and answers","Syngene International Limited interview questions and answers","Tech Mahindra interview questions and answers","UnitedHealth Group interview questions and answers","Virtusa Consulting Services Pvt Ltd interview questions and answers","Wells Fargo interview questions and answers","Xoriant Solutions Pvt Ltd interview questions and answers"],"articleSection":["Apache Pig"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.wikitechy.com\/interview-questions\/apache-pig\/what-is-the-purpose-of-outputschema-decorator-in-python-udf-when-using-in-apache-pig\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/apache-pig\/what-is-the-purpose-of-outputschema-decorator-in-python-udf-when-using-in-apache-pig\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/apache-pig\/what-is-the-purpose-of-outputschema-decorator-in-python-udf-when-using-in-apache-pig\/","name":"What is the purpose of @outputSchema decorator in Python UDF","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/apache-pig\/what-is-the-purpose-of-outputschema-decorator-in-python-udf-when-using-in-apache-pig\/#primaryimage"},"image":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/apache-pig\/what-is-the-purpose-of-outputschema-decorator-in-python-udf-when-using-in-apache-pig\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.wikitechy.com\/interview-questions\/apache-pig\/apache-pig-udf.png","datePublished":"2021-07-12T08:49:19+00:00","dateModified":"2021-09-14T11:14:30+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"description":"What is the purpose of @outputSchema decorator in Python UDF when using in Apache Pig ? - pig interview questions and answers","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/apache-pig\/what-is-the-purpose-of-outputschema-decorator-in-python-udf-when-using-in-apache-pig\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/apache-pig\/what-is-the-purpose-of-outputschema-decorator-in-python-udf-when-using-in-apache-pig\/#primaryimage","url":"https:\/\/cdn.wikitechy.com\/interview-questions\/apache-pig\/apache-pig-udf.png","contentUrl":"https:\/\/cdn.wikitechy.com\/interview-questions\/apache-pig\/apache-pig-udf.png"},{"@type":"WebSite","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website","url":"https:\/\/www.wikitechy.com\/interview-questions\/","name":"Wikitechy","description":"Interview Questions","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757","name":"Editor","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","caption":"Editor"},"url":"https:\/\/www.wikitechy.com\/interview-questions\/author\/editor\/"}]}},"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/215","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/comments?post=215"}],"version-history":[{"count":4,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/215\/revisions"}],"predecessor-version":[{"id":3739,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/215\/revisions\/3739"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=215"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}