

{"id":13006,"date":"2018-04-12T06:34:22","date_gmt":"2018-04-12T06:34:22","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=13006"},"modified":"2021-05-09T13:10:55","modified_gmt":"2021-05-09T07:40:55","slug":"impala-comments","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/impala-comments\/","title":{"rendered":"Impala Comments &#8211; 2 Types of Comments with Examples"},"content":{"rendered":"<p><span style=\"font-weight: 400\">In <strong>Impala<\/strong>, when we need to specify what each query or a group of queries are, we use Several Impala Comments. So, in this article, we will introduce various Impala Comments. <\/span><\/p>\n<p><span style=\"font-weight: 400\">There are two types of Impala Comments. Such as Single line and Multiline. We will also learn about them in detail here. Moreover, we will see some examples, to understand it well.<\/span><\/p>\n<h2><span style=\"font-weight: 400\">What is Impala Comments?<\/span><\/h2>\n<p><span style=\"font-weight: 400\">Basically, we can say, Impala Comments are same as comments in SQL. Moreover, we might require adding comments to specify what each query or a group of queries are while lots of queries are written in a file. So, further adding comments to the query file will help you achieve your objective.<\/span><\/p>\n<p><span style=\"font-weight: 400\"> However, there are two types of comments in programming languages, such as:<\/span><\/p>\n<ol>\n<li><span style=\"font-weight: 400\"> Single-line Comments <\/span><\/li>\n<li><span style=\"font-weight: 400\"> Multiline Comments<\/span><\/li>\n<\/ol>\n<h3><span style=\"font-weight: 400\">i. Single-line comments or \u00a0&#8211; &#8211; Sequence (two dashes)<\/span><\/h3>\n<p><span style=\"font-weight: 400\">In Impala, every single line that is followed by &#8220;\u2014&#8221; is considered as a comment. For example:<br \/>\n<\/span><b>&#8211; &#8211; Hello welcome to DataFlair<\/b><\/p>\n<p><span style=\"font-weight: 400\">In other words, all text from a &#8211; &#8211; sequence to the end of the line is considered a comment and ignored. Moreover, This type of comment can occur on a single line by itself. Also, or part of a statement.<\/span><\/p>\n<h3><span style=\"font-weight: 400\">ii. Multiline comments or \/* this is a comment *\/<\/span><\/h3>\n<p><span style=\"font-weight: 400\">In Impala, Multiline comments are all the lines between \/* and *\/. For example:<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">\/*\nHi this is an example\nOf multiline comments in Impala\n*\/<\/pre>\n<p><span style=\"font-weight: 400\">In other words, All text from a \/* sequence to the next *\/ sequence is considered a comment and ignored. Basically, we can stretch it over multiple lines. It can occur on one or more lines by itself, in the middle of a statement. Also, before or after a statement.<\/span><\/p>\n<h2><span style=\"font-weight: 400\">Example of Comments in Impala<\/span><\/h2>\n<p><span style=\"font-weight: 400\">For example:<\/span><span style=\"font-weight: 400\"><br \/>\n<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">-- This line is a comment about a table.\ncreate table ...;\n\/*\nThis is a multi-line comment about a query.\n*\/\nselect ...;\nselect * from t \/* This is an embedded comment about a query. *\/ where ...;\nselect * from t -- This is a trailing comment within a multi-line command.\nwhere ...;<\/pre>\n<h2><span style=\"font-weight: 400\">Conclusion<\/span><\/h2>\n<p><span style=\"font-weight: 400\">As a result, we have seen, several types of Impala Comments. However, if any doubt occurs, feel free to ask in the comment section.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Impala, when we need to specify what each query or a group of queries are, we use Several Impala Comments. So, in this article, we will introduce various Impala Comments. There are two&#46;&#46;&#46;<\/p>\n","protected":false},"author":6,"featured_media":19068,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[2683,4256,4279,6490,7048,8935,12908,15485,15759],"class_list":["post-13006","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-impala","tag-comments-in-impala","tag-example-of-comments-in-impala","tag-example-of-impala-comments","tag-impala-comments","tag-introduction-to-impala-comments","tag-multiline-comments","tag-single-line-comments-in-impala","tag-what-are-impala-comments","tag-what-is-impala-comments"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Impala Comments - 2 Types of Comments with Examples - DataFlair<\/title>\n<meta name=\"description\" content=\"Impala Comments- Types of Comments in Impala with example, Impala Single-line Comments, Impala Multiline Comments, Example of Impala Comments\" \/>\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\/impala-comments\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Impala Comments - 2 Types of Comments with Examples - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Impala Comments- Types of Comments in Impala with example, Impala Single-line Comments, Impala Multiline Comments, Example of Impala Comments\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/impala-comments\/\" \/>\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=\"2018-04-12T06:34:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-09T07:40:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/Introduction-to-Impala-Comments-with-Examples-01.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=\"2 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Impala Comments - 2 Types of Comments with Examples - DataFlair","description":"Impala Comments- Types of Comments in Impala with example, Impala Single-line Comments, Impala Multiline Comments, Example of Impala Comments","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\/impala-comments\/","og_locale":"en_US","og_type":"article","og_title":"Impala Comments - 2 Types of Comments with Examples - DataFlair","og_description":"Impala Comments- Types of Comments in Impala with example, Impala Single-line Comments, Impala Multiline Comments, Example of Impala Comments","og_url":"https:\/\/data-flair.training\/blogs\/impala-comments\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2018-04-12T06:34:22+00:00","article_modified_time":"2021-05-09T07:40:55+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/Introduction-to-Impala-Comments-with-Examples-01.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":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/impala-comments\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/impala-comments\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89"},"headline":"Impala Comments &#8211; 2 Types of Comments with Examples","datePublished":"2018-04-12T06:34:22+00:00","dateModified":"2021-05-09T07:40:55+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/impala-comments\/"},"wordCount":315,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/impala-comments\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/Introduction-to-Impala-Comments-with-Examples-01.jpg","keywords":["Comments in Impala","Example of Comments in Impala","example of Impala comments","Impala Comments","Introduction to Impala Comments","multiline comments","single line comments in Impala","what are Impala Comments","What is Impala Comments"],"articleSection":["Impala Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/impala-comments\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/impala-comments\/","url":"https:\/\/data-flair.training\/blogs\/impala-comments\/","name":"Impala Comments - 2 Types of Comments with Examples - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/impala-comments\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/impala-comments\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/Introduction-to-Impala-Comments-with-Examples-01.jpg","datePublished":"2018-04-12T06:34:22+00:00","dateModified":"2021-05-09T07:40:55+00:00","description":"Impala Comments- Types of Comments in Impala with example, Impala Single-line Comments, Impala Multiline Comments, Example of Impala Comments","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/impala-comments\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/impala-comments\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/impala-comments\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/Introduction-to-Impala-Comments-with-Examples-01.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/Introduction-to-Impala-Comments-with-Examples-01.jpg","width":1200,"height":628,"caption":"Impala Comments - 2 Types of Comments with Examples"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/impala-comments\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Impala Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/impala\/"},{"@type":"ListItem","position":3,"name":"Impala Comments &#8211; 2 Types of Comments with Examples"}]},{"@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\/2c58ecb4f73a39f0ef993f1ddfcd7b89","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"The DataFlair Team provides industry-driven content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our expert educators focus on delivering value-packed, easy-to-follow resources for tech enthusiasts and professionals.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam2\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/13006","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\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=13006"}],"version-history":[{"count":1,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/13006\/revisions"}],"predecessor-version":[{"id":94031,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/13006\/revisions\/94031"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/19068"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=13006"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=13006"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=13006"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}