

{"id":12436,"date":"2018-04-07T09:38:23","date_gmt":"2018-04-07T09:38:23","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=12436"},"modified":"2021-05-09T13:11:09","modified_gmt":"2021-05-09T07:41:09","slug":"impala-truncate-table-statement","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/impala-truncate-table-statement\/","title":{"rendered":"Impala TRUNCATE TABLE Statement with Practical Example"},"content":{"rendered":"<p>As we know to delete the table completely we use <strong>Impala Drop Table Statement<\/strong>. However, we just need to delete some data from an <strong>Impala<\/strong> table while leaving the table itself. For that purpose, we use the Impala TRUNCATE TABLE Statement.<\/p>\n<p>So, in this article, we will learn the whole concept of Impala TRUNCATE TABLE Statement. Apart from its introduction, it includes its syntax, type as well as its example, to understand it well.<\/p>\n<p>So, let&#8217;s start Impala Truncate Table Statements.<\/p>\n<h2><span style=\"font-weight: 400\">How to use Impala TRUNCATE TABLE Statement <\/span><\/h2>\n<p><span style=\"font-weight: 400\">Basically, to delete some data from an Impala table while leaving the table itself we use Impala TRUNCATE TABLE Statement.\u00a0<\/span><span style=\"font-weight: 400\">In other words, to remove all the records from an existing table we use the Truncate Table Statement of Impala.<\/span><\/p>\n<p><span style=\"font-weight: 400\">So, there is one more command we can use DROP TABLE command, but it would remove the complete table structure from the database. Then we would require re-creating this table once again if we wish you store some data.<\/span><\/p>\n<h3><span style=\"font-weight: 400\">a. Syntax of Impala Truncate Table Statements<\/span><\/h3>\n<p><span style=\"font-weight: 400\">So, the syntax for using Impala TRUNCATE TABLE Statement is-<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">TRUNCATE TABLE [IF EXISTS] [db_name.]table_name<\/pre>\n<h3><span style=\"font-weight: 400\">b. Statement type<\/span><\/h3>\n<pre class=\"EnlighterJSRAW\">Impala TRUNCATE TABLE Statement is of DDL Type.<\/pre>\n<h3><span style=\"font-weight: 400\">c. Usage<\/span><\/h3>\n<p><span style=\"font-weight: 400\">After the data has been copied to another table for the next stage of processing often used to empty tables that are used during ETL cycles. <\/span><\/p>\n<p><span style=\"font-weight: 400\">In addition, to dropping and recreating the table, or using INSERT OVERWRITE to replace the data during the next ETL cycle, this statement is a low-overhead alternative.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Makes sure it deletes all the data and associated data files in the table. So, we can use it to delete data files from internal tables, external tables, partitioned tables, and tables mapped to HBase or the Amazon Simple Storage Service (S3). <\/span><\/p>\n<p><span style=\"font-weight: 400\">Well, including all partitions of a partitioned table, the data removal applies to the entire table.<\/span><\/p>\n<p><span style=\"font-weight: 400\">However, when the data is removed any statistics produced by the COMPUTE STATS statement are reset.<\/span><span style=\"font-weight: 400\"><br \/>\n<\/span><span style=\"font-weight: 400\"><br \/>\n<\/span><span style=\"font-weight: 400\">Although, before truncating a table ensure that you are in the correct database. Either by using a fully qualified name db_name.table_name or by issuing a USE statement first.<\/span><\/p>\n<p>There is an optional IF EXISTS clause. It is available in CDH 5.7 \/ Impala 2.5 and higher. It makes the statement succeed even if the table exists or not. There are two possible conditions, \u00a0Either the table does exist or not exist.<\/p>\n<p>So, if it does exist, it is truncated; or if it does not exist the statement has no effect. To be more specific, in standardized setup scripts that is might be run both before and after some of the tables exist, this is very useful.<\/p>\n<p><span style=\"font-weight: 400\">Moreover, if we use this statement to remove any HDFS data files, it goes into the \u00a0<strong>HDFS<\/strong> trashcan. Further, if this operation turns out to be a mistake, we can recover them within a defined time interval.<\/span><\/p>\n<h3>d. Cancellation<\/h3>\n<p>It is not possible to cancel it. That implies it Cannot be canceled.<\/p>\n<h2><span style=\"font-weight: 400\">Amazon S3 Considerations<\/span><\/h2>\n<p><span style=\"font-weight: 400\">Here, the TRUNCATE TABLE statement can remove data files from S3, but Impala cannot write new data to a table stored in the Amazon S3 filesystem.<\/span><\/p>\n<h2><span style=\"font-weight: 400\">HDFS Permissions<\/span><\/h2>\n<p><span style=\"font-weight: 400\">It is must that the Impala user ID has to write permission for all the files and directories those make up the table that the Impalad daemon runs under.<\/span><span style=\"font-weight: 400\"><br \/>\n<\/span><\/p>\n<h2><span style=\"font-weight: 400\">Examples of Truncate Table in Impala<\/span><\/h2>\n<p><span style=\"font-weight: 400\">Here, is a table containing some data and with table and column statistics. Now, the data is removed and the statistics are reset after the TRUNCATE TABLE statement.<\/span><br \/>\n<span style=\"font-weight: 400\">For Example,<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">CREATE TABLE truncate_demo (x INT);\nINSERT INTO truncate_demo VALUES (1), (2), (4), (8);\nSELECT COUNT(*) FROM truncate_demo;<\/pre>\n<table>\n<tbody>\n<tr>\n<td><b>count(*)<\/b><\/td>\n<\/tr>\n<tr>\n<td><b>4<\/b><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<pre class=\"EnlighterJSRAW\">COMPUTE STATS truncate_demo;<\/pre>\n<table>\n<tbody>\n<tr>\n<td><b>summary \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/b><\/td>\n<\/tr>\n<tr>\n<td><b>Updated 1 partition(s) and 1 column(s).<\/b><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<pre class=\"EnlighterJSRAW\">SHOW TABLE STATS truncate_demo;<\/pre>\n<table>\n<tbody>\n<tr>\n<td><b> #Rows<\/b><\/td>\n<td><b> #Files <\/b><\/td>\n<td><b>size<\/b><\/td>\n<td><b>Bytes cached <\/b><\/td>\n<td><b>Cache Replication <\/b><\/td>\n<td><b>Format<\/b><\/td>\n<td><b>Incremental Stats<\/b><\/td>\n<\/tr>\n<tr>\n<td><b>4<\/b><\/td>\n<td><b>1<\/b><\/td>\n<td><b>8B<\/b><\/td>\n<td><b>NOT CACHED<\/b><\/td>\n<td><b>NOT CACHED<\/b><\/td>\n<td><b>TEXT<\/b><\/td>\n<td><b>false<\/b><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<pre class=\"EnlighterJSRAW\">SHOW COLUMN STATS truncate_demo;<\/pre>\n<table>\n<tbody>\n<tr>\n<td><b>column<\/b><\/td>\n<td><b>Type<\/b><\/td>\n<td><b>#Distinct Values<\/b><\/td>\n<td><b>#Nulls<\/b><\/td>\n<td><b>Max Size<\/b><\/td>\n<td><b>Avg Size<\/b><\/td>\n<\/tr>\n<tr>\n<td><b>x<\/b><\/td>\n<td><b>INT<\/b><\/td>\n<td><b>4<\/b><\/td>\n<td><b>-1<\/b><\/td>\n<td><b>4<\/b><\/td>\n<td><b>4<\/b><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<pre class=\"EnlighterJSRAW\">-- After this statement, the data and the table\/column stats will be gone.\nTRUNCATE TABLE truncate_demo;\nSELECT COUNT(*) FROM truncate_demo;<\/pre>\n<table>\n<tbody>\n<tr>\n<td><b>count(*)<\/b><\/td>\n<\/tr>\n<tr>\n<td><b>0<\/b><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<pre class=\"EnlighterJSRAW\">SHOW TABLE STATS truncate_demo;<\/pre>\n<table>\n<tbody>\n<tr>\n<td><b>#Rows<\/b><\/td>\n<td><b>#Files<\/b><\/td>\n<td><b> Size <\/b><\/td>\n<td><b>Bytes Cached<\/b><\/td>\n<td><b> Cache Replication<\/b><\/td>\n<td><b>Format<\/b><\/td>\n<td><b>Incremental stats<\/b><\/td>\n<\/tr>\n<tr>\n<td><b>-1<\/b><\/td>\n<td><b>0<\/b><\/td>\n<td><b>0B<\/b><\/td>\n<td><b>NOT CACHED<\/b><\/td>\n<td><b>NOT CACHED<\/b><\/td>\n<td><b>TEXT<\/b><\/td>\n<td><b>false<\/b><b>\u00a0<\/b><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<pre class=\"EnlighterJSRAW\">SHOW COLUMN STATS truncate_demo;\n<\/pre>\n<table>\n<tbody>\n<tr>\n<td><b> Column<\/b><\/td>\n<td><b> Type <\/b><\/td>\n<td><b>#Nulls<\/b><\/td>\n<td><b>#Distinct Values<\/b><\/td>\n<td><b>Max Size<\/b><\/td>\n<td><b>Avg Size<\/b><\/td>\n<\/tr>\n<tr>\n<td><b>X<\/b><\/td>\n<td><b>INT<\/b><\/td>\n<td><b>-1<\/b><\/td>\n<td><b>-1<\/b><\/td>\n<td><b>4<\/b><\/td>\n<td><b>4<\/b><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Further, it shows how the IF EXISTS clause allows the TRUNCATE TABLE statement to be run without error whether or not the table exists:<br \/>\n<span style=\"font-weight: 400\">For Example, <\/span><span style=\"font-weight: 400\"><br \/>\n<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">CREATE TABLE staging_table1 (x INT, s STRING);\nFetched 0 row(s) in 0.33s\nSHOW TABLES LIKE 'staging*';\n<\/pre>\n<table>\n<tbody>\n<tr>\n<td><b>NAME<\/b><\/td>\n<\/tr>\n<tr>\n<td><b> staging_table1<\/b><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<pre class=\"EnlighterJSRAW\">Fetched 1 row(s) in 0.25s\n-- Our ETL process involves removing all data from several staging tables\n-- even though some might be already dropped, or not created yet.\nTRUNCATE TABLE IF EXISTS staging_table1;\nFetched 0 row(s) in 5.04s\nTRUNCATE TABLE IF EXISTS staging_table2;\nFetched 0 row(s) in 0.25s\nTRUNCATE TABLE IF EXISTS staging_table3;\nFetched 0 row(s) in 0.25s<\/pre>\n<p>So, this was all in Impala Truncate Table Statements. Hope you like our explanation.<\/p>\n<h2><span style=\"font-weight: 400\">Conclusion<\/span><\/h2>\n<p><span style=\"font-weight: 400\">As a result, we have seen the whole concept of Impala TRUNCATE TABLE Statement. Still, if any doubt occurs in how to use Impala TRUNCATE TABLE Statement, feel free to ask in the comment section.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>As we know to delete the table completely we use Impala Drop Table Statement. However, we just need to delete some data from an Impala table while leaving the table itself. For that purpose,&#46;&#46;&#46;<\/p>\n","protected":false},"author":6,"featured_media":19089,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[4365,5589,6565,6566,6567,14970,15763],"class_list":["post-12436","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-impala","tag-example-of-truncate-table","tag-hdfs-permissions","tag-impala-truncate-table","tag-impala-truncate-table-statement","tag-impala-truncate-table-usage","tag-truncate-table","tag-what-is-impala-truncate-table"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Impala TRUNCATE TABLE Statement with Practical Example - DataFlair<\/title>\n<meta name=\"description\" content=\"How to use Impala TRUNCATE TABLE Statement- Syntax &amp; exmaple of TRUNCATE TABLE Statement in Impala, Usage of a truncate table in impala, HDFS Permission\" \/>\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-truncate-table-statement\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Impala TRUNCATE TABLE Statement with Practical Example - DataFlair\" \/>\n<meta property=\"og:description\" content=\"How to use Impala TRUNCATE TABLE Statement- Syntax &amp; exmaple of TRUNCATE TABLE Statement in Impala, Usage of a truncate table in impala, HDFS Permission\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/impala-truncate-table-statement\/\" \/>\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-07T09:38:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-09T07:41:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/Impala-TRUNCATE-TABLE-Statement-01-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=\"4 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Impala TRUNCATE TABLE Statement with Practical Example - DataFlair","description":"How to use Impala TRUNCATE TABLE Statement- Syntax & exmaple of TRUNCATE TABLE Statement in Impala, Usage of a truncate table in impala, HDFS Permission","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-truncate-table-statement\/","og_locale":"en_US","og_type":"article","og_title":"Impala TRUNCATE TABLE Statement with Practical Example - DataFlair","og_description":"How to use Impala TRUNCATE TABLE Statement- Syntax & exmaple of TRUNCATE TABLE Statement in Impala, Usage of a truncate table in impala, HDFS Permission","og_url":"https:\/\/data-flair.training\/blogs\/impala-truncate-table-statement\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2018-04-07T09:38:23+00:00","article_modified_time":"2021-05-09T07:41:09+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/Impala-TRUNCATE-TABLE-Statement-01-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":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/impala-truncate-table-statement\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/impala-truncate-table-statement\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89"},"headline":"Impala TRUNCATE TABLE Statement with Practical Example","datePublished":"2018-04-07T09:38:23+00:00","dateModified":"2021-05-09T07:41:09+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/impala-truncate-table-statement\/"},"wordCount":736,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/impala-truncate-table-statement\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/Impala-TRUNCATE-TABLE-Statement-01-1.jpg","keywords":["Example of truncate table","HDFS permissions","Impala Truncate Table","Impala TRUNCATE TABLE Statement","Impala Truncate Table usage","Truncate Table","what is Impala Truncate table"],"articleSection":["Impala Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/impala-truncate-table-statement\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/impala-truncate-table-statement\/","url":"https:\/\/data-flair.training\/blogs\/impala-truncate-table-statement\/","name":"Impala TRUNCATE TABLE Statement with Practical Example - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/impala-truncate-table-statement\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/impala-truncate-table-statement\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/Impala-TRUNCATE-TABLE-Statement-01-1.jpg","datePublished":"2018-04-07T09:38:23+00:00","dateModified":"2021-05-09T07:41:09+00:00","description":"How to use Impala TRUNCATE TABLE Statement- Syntax & exmaple of TRUNCATE TABLE Statement in Impala, Usage of a truncate table in impala, HDFS Permission","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/impala-truncate-table-statement\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/impala-truncate-table-statement\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/impala-truncate-table-statement\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/Impala-TRUNCATE-TABLE-Statement-01-1.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/Impala-TRUNCATE-TABLE-Statement-01-1.jpg","width":1200,"height":628,"caption":"Impala TRUNCATE TABLE Statement with Practical Example"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/impala-truncate-table-statement\/#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 TRUNCATE TABLE Statement with Practical Example"}]},{"@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\/12436","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=12436"}],"version-history":[{"count":1,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/12436\/revisions"}],"predecessor-version":[{"id":94046,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/12436\/revisions\/94046"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/19089"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=12436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=12436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=12436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}