{"id":8727,"date":"2021-05-29T10:14:11","date_gmt":"2021-05-29T10:14:11","guid":{"rendered":"https:\/\/prwatech.in\/blog\/?p=8727"},"modified":"2021-05-29T10:14:12","modified_gmt":"2021-05-29T10:14:12","slug":"adding-bigquery-data-through-cloud-shell","status":"publish","type":"post","link":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/adding-bigquery-data-through-cloud-shell\/","title":{"rendered":"Adding BigQuery data through cloud shell"},"content":{"rendered":"\n<p><strong>Prerequisites<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/www.prwatech.com\/course\/gcptraining\" data-type=\"URL\" data-id=\"https:\/\/www.prwatech.com\/course\/gcptraining\" target=\"_blank\" rel=\"noreferrer noopener\">GCP<\/a> account<\/p>\n\n\n\n<p>Open Cloud shell.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"382\" height=\"139\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-119.png\" alt=\"\" class=\"wp-image-8728\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-119.png 382w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-119-300x109.png 300w\" sizes=\"auto, (max-width: 382px) 100vw, 382px\" \/><\/figure>\n\n\n\n<p>Paste the Below Code in Console.<\/p>\n\n\n\n<p>bq load \\<\/p>\n\n\n\n<p>&#8211;source_format=CSV \\<\/p>\n\n\n\n<p>&#8211;autodetect \\<\/p>\n\n\n\n<p>&#8211;noreplace \\<\/p>\n\n\n\n<p>nyc_taxi.2018_trips \\<\/p>\n\n\n\n<p>gs:\/\/cloud-training\/OCBL013\/nyc_tlc_yellow_trips_2018_subset_1.csv<\/p>\n\n\n\n<p>It will add the file into the <a href=\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/bigquery\/\" data-type=\"URL\" data-id=\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/bigquery\/\" target=\"_blank\" rel=\"noreferrer noopener\">Bigquery.<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"628\" height=\"152\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-120.png\" alt=\"\" class=\"wp-image-8729\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-120.png 628w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-120-300x73.png 300w\" sizes=\"auto, (max-width: 628px) 100vw, 628px\" \/><\/figure>\n\n\n\n<p>Open the Table and check the details. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"451\" height=\"427\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-121.png\" alt=\"\" class=\"wp-image-8730\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-121.png 451w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-121-300x284.png 300w\" sizes=\"auto, (max-width: 451px) 100vw, 451px\" \/><\/figure>\n\n\n\n<p>Paste the below code.<\/p>\n\n\n\n<p>CREATE TABLE<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp; nyc_taxi.january_trips AS<\/p>\n\n\n\n<p>SELECT<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp; *<\/p>\n\n\n\n<p>FROM<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp; nyc_taxi.2018_trips<\/p>\n\n\n\n<p>WHERE<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp; EXTRACT(Month<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp; FROM<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pickup_datetime)=1;<\/p>\n\n\n\n<p>Click Run.<\/p>\n\n\n\n<p>\u00a0It will create a new table named January_trips.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"579\" height=\"457\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-122.png\" alt=\"\" class=\"wp-image-8731\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-122.png 579w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-122-300x237.png 300w\" sizes=\"auto, (max-width: 579px) 100vw, 579px\" \/><\/figure>\n\n\n\n<p>It will create a new table named January_trips.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Prerequisites GCP account Open Cloud shell. Paste the Below Code in Console. bq load \\ &#8211;source_format=CSV \\ &#8211;autodetect \\ &#8211;noreplace \\ nyc_taxi.2018_trips \\ gs:\/\/cloud-training\/OCBL013\/nyc_tlc_yellow_trips_2018_subset_1.csv It will add the file into the Bigquery. Open the Table and check the details. Paste the below code. CREATE TABLE &nbsp;&nbsp;&nbsp;&nbsp; nyc_taxi.january_trips AS SELECT &nbsp;&nbsp;&nbsp;&nbsp; * FROM &nbsp;&nbsp;&nbsp;&nbsp; nyc_taxi.2018_trips WHERE [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[728,1401,1403,736,732,1402,605,729,699,700,984,735,617,683,684,685,611,1400,692],"class_list":["post-8727","post","type-post","status-publish","format-standard","hentry","category-google-cloud-platform","tag-bigquery","tag-bigquery-console","tag-bigquery-documentation","tag-bigquery-in-cloud","tag-bigquery-sql","tag-bigquery-tutorial","tag-gcp","tag-gcp-bigquery","tag-gcp-certification","tag-gcp-cloud-console","tag-gcp-course","tag-google-bigquery","tag-google-cloud","tag-google-cloud-certification","tag-google-cloud-console","tag-google-cloud-courses","tag-google-cloud-platform","tag-google-cloud-platform-tutorial","tag-google-cloud-training"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Adding BigQuery data through cloud shell - Prwatech<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Adding BigQuery data through cloud shell - Prwatech\" \/>\n<meta property=\"og:description\" content=\"Prerequisites GCP account Open Cloud shell. Paste the Below Code in Console. bq load  &#8211;source_format=CSV  &#8211;autodetect  &#8211;noreplace  nyc_taxi.2018_trips  gs:\/\/cloud-training\/OCBL013\/nyc_tlc_yellow_trips_2018_subset_1.csv It will add the file into the Bigquery. Open the Table and check the details. Paste the below code. CREATE TABLE &nbsp;&nbsp;&nbsp;&nbsp; nyc_taxi.january_trips AS SELECT &nbsp;&nbsp;&nbsp;&nbsp; * FROM &nbsp;&nbsp;&nbsp;&nbsp; nyc_taxi.2018_trips WHERE [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/adding-bigquery-data-through-cloud-shell\/\" \/>\n<meta property=\"og:site_name\" content=\"Prwatech\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prwatech.in\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-05-29T10:14:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-29T10:14:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-119.png\" \/>\n<meta name=\"author\" content=\"Prwatech\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Eduprwatech\" \/>\n<meta name=\"twitter:site\" content=\"@Eduprwatech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prwatech\" \/>\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\":\"WebPage\",\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/adding-bigquery-data-through-cloud-shell\/\",\"url\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/adding-bigquery-data-through-cloud-shell\/\",\"name\":\"Adding BigQuery data through cloud shell - Prwatech\",\"isPartOf\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/adding-bigquery-data-through-cloud-shell\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/adding-bigquery-data-through-cloud-shell\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-119.png\",\"datePublished\":\"2021-05-29T10:14:11+00:00\",\"dateModified\":\"2021-05-29T10:14:12+00:00\",\"author\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3\"},\"breadcrumb\":{\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/adding-bigquery-data-through-cloud-shell\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/adding-bigquery-data-through-cloud-shell\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/adding-bigquery-data-through-cloud-shell\/#primaryimage\",\"url\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-119.png\",\"contentUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-119.png\",\"width\":382,\"height\":139},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/adding-bigquery-data-through-cloud-shell\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/prwatech.in\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Adding BigQuery data through cloud shell\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/prwatech.in\/blog\/#website\",\"url\":\"https:\/\/prwatech.in\/blog\/\",\"name\":\"Prwatech\",\"description\":\"Share Ideas, Start Something Good.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/prwatech.in\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3\",\"name\":\"Prwatech\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g\",\"caption\":\"Prwatech\"},\"url\":\"https:\/\/prwatech.in\/blog\/author\/prwatech123\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Adding BigQuery data through cloud shell - Prwatech","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"Adding BigQuery data through cloud shell - Prwatech","og_description":"Prerequisites GCP account Open Cloud shell. Paste the Below Code in Console. bq load  &#8211;source_format=CSV  &#8211;autodetect  &#8211;noreplace  nyc_taxi.2018_trips  gs:\/\/cloud-training\/OCBL013\/nyc_tlc_yellow_trips_2018_subset_1.csv It will add the file into the Bigquery. Open the Table and check the details. Paste the below code. CREATE TABLE &nbsp;&nbsp;&nbsp;&nbsp; nyc_taxi.january_trips AS SELECT &nbsp;&nbsp;&nbsp;&nbsp; * FROM &nbsp;&nbsp;&nbsp;&nbsp; nyc_taxi.2018_trips WHERE [&hellip;]","og_url":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/adding-bigquery-data-through-cloud-shell\/","og_site_name":"Prwatech","article_publisher":"https:\/\/www.facebook.com\/prwatech.in\/","article_published_time":"2021-05-29T10:14:11+00:00","article_modified_time":"2021-05-29T10:14:12+00:00","og_image":[{"url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-119.png","type":"","width":"","height":""}],"author":"Prwatech","twitter_card":"summary_large_image","twitter_creator":"@Eduprwatech","twitter_site":"@Eduprwatech","twitter_misc":{"Written by":"Prwatech","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/adding-bigquery-data-through-cloud-shell\/","url":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/adding-bigquery-data-through-cloud-shell\/","name":"Adding BigQuery data through cloud shell - Prwatech","isPartOf":{"@id":"https:\/\/prwatech.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/adding-bigquery-data-through-cloud-shell\/#primaryimage"},"image":{"@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/adding-bigquery-data-through-cloud-shell\/#primaryimage"},"thumbnailUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-119.png","datePublished":"2021-05-29T10:14:11+00:00","dateModified":"2021-05-29T10:14:12+00:00","author":{"@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3"},"breadcrumb":{"@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/adding-bigquery-data-through-cloud-shell\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/prwatech.in\/blog\/google-cloud-platform\/adding-bigquery-data-through-cloud-shell\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/adding-bigquery-data-through-cloud-shell\/#primaryimage","url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-119.png","contentUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/05\/image-119.png","width":382,"height":139},{"@type":"BreadcrumbList","@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/adding-bigquery-data-through-cloud-shell\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/prwatech.in\/blog\/"},{"@type":"ListItem","position":2,"name":"Adding BigQuery data through cloud shell"}]},{"@type":"WebSite","@id":"https:\/\/prwatech.in\/blog\/#website","url":"https:\/\/prwatech.in\/blog\/","name":"Prwatech","description":"Share Ideas, Start Something Good.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/prwatech.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3","name":"Prwatech","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g","caption":"Prwatech"},"url":"https:\/\/prwatech.in\/blog\/author\/prwatech123\/"}]}},"_links":{"self":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/8727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/comments?post=8727"}],"version-history":[{"count":1,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/8727\/revisions"}],"predecessor-version":[{"id":8732,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/8727\/revisions\/8732"}],"wp:attachment":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/media?parent=8727"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/categories?post=8727"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/tags?post=8727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}