<br />
<b>Deprecated</b>:  Creation of dynamic property wpdb::$categories is deprecated in <b>/home/garrens3/public_html/blog/wp-includes/wp-db.php</b> on line <b>760</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property wpdb::$post2cat is deprecated in <b>/home/garrens3/public_html/blog/wp-includes/wp-db.php</b> on line <b>760</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property wpdb::$link2cat is deprecated in <b>/home/garrens3/public_html/blog/wp-includes/wp-db.php</b> on line <b>760</b><br />
<br />
<b>Deprecated</b>:  Automatic conversion of false to array is deprecated in <b>/home/garrens3/public_html/blog/wp-content/plugins/loginizer/init.php</b> on line <b>250</b><br />
<br />
<b>Deprecated</b>:  Automatic conversion of false to array is deprecated in <b>/home/garrens3/public_html/blog/wp-content/plugins/loginizer/init.php</b> on line <b>265</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property WP_Block_Type::$skip_inner_blocks is deprecated in <b>/home/garrens3/public_html/blog/wp-includes/class-wp-block-type.php</b> on line <b>391</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property WP_Block_Type::$skip_inner_blocks is deprecated in <b>/home/garrens3/public_html/blog/wp-includes/class-wp-block-type.php</b> on line <b>391</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property WP_Block::$attributes is deprecated in <b>/home/garrens3/public_html/blog/wp-includes/class-wp-block.php</b> on line <b>179</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property WP_Block::$attributes is deprecated in <b>/home/garrens3/public_html/blog/wp-includes/class-wp-block.php</b> on line <b>179</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property WP_Block::$attributes is deprecated in <b>/home/garrens3/public_html/blog/wp-includes/class-wp-block.php</b> on line <b>179</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property WP_Block::$attributes is deprecated in <b>/home/garrens3/public_html/blog/wp-includes/class-wp-block.php</b> on line <b>179</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property WP_Block::$attributes is deprecated in <b>/home/garrens3/public_html/blog/wp-includes/class-wp-block.php</b> on line <b>179</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property WP_Block::$attributes is deprecated in <b>/home/garrens3/public_html/blog/wp-includes/class-wp-block.php</b> on line <b>179</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property WP_Block::$attributes is deprecated in <b>/home/garrens3/public_html/blog/wp-includes/class-wp-block.php</b> on line <b>179</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property WP_Block::$attributes is deprecated in <b>/home/garrens3/public_html/blog/wp-includes/class-wp-block.php</b> on line <b>179</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property WP_Block::$attributes is deprecated in <b>/home/garrens3/public_html/blog/wp-includes/class-wp-block.php</b> on line <b>179</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property WP_Block::$attributes is deprecated in <b>/home/garrens3/public_html/blog/wp-includes/class-wp-block.php</b> on line <b>179</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property WP_Block::$attributes is deprecated in <b>/home/garrens3/public_html/blog/wp-includes/class-wp-block.php</b> on line <b>179</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property WP_Block::$attributes is deprecated in <b>/home/garrens3/public_html/blog/wp-includes/class-wp-block.php</b> on line <b>179</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property WP_Block::$attributes is deprecated in <b>/home/garrens3/public_html/blog/wp-includes/class-wp-block.php</b> on line <b>179</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property WP_Block::$attributes is deprecated in <b>/home/garrens3/public_html/blog/wp-includes/class-wp-block.php</b> on line <b>179</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property WP_Block::$attributes is deprecated in <b>/home/garrens3/public_html/blog/wp-includes/class-wp-block.php</b> on line <b>179</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property WP_Block::$attributes is deprecated in <b>/home/garrens3/public_html/blog/wp-includes/class-wp-block.php</b> on line <b>179</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property WP_Block::$attributes is deprecated in <b>/home/garrens3/public_html/blog/wp-includes/class-wp-block.php</b> on line <b>179</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property WP_Block::$attributes is deprecated in <b>/home/garrens3/public_html/blog/wp-includes/class-wp-block.php</b> on line <b>179</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property WP_Block::$attributes is deprecated in <b>/home/garrens3/public_html/blog/wp-includes/class-wp-block.php</b> on line <b>179</b><br />
<br />
<b>Deprecated</b>:  Creation of dynamic property WP_Block::$attributes is deprecated in <b>/home/garrens3/public_html/blog/wp-includes/class-wp-block.php</b> on line <b>179</b><br />
<br />
<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at /home/garrens3/public_html/blog/wp-includes/class-wp-block.php:179) in <b>/home/garrens3/public_html/blog/wp-includes/rest-api/class-wp-rest-server.php</b> on line <b>1723</b><br />
<br />
<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at /home/garrens3/public_html/blog/wp-includes/class-wp-block.php:179) in <b>/home/garrens3/public_html/blog/wp-includes/rest-api/class-wp-rest-server.php</b> on line <b>1723</b><br />
{"id":267,"date":"2018-03-02T12:18:00","date_gmt":"2018-03-02T20:18:00","guid":{"rendered":"http:\/\/garrens.com\/blog\/?p=267"},"modified":"2020-01-24T08:32:40","modified_gmt":"2020-01-24T16:32:40","slug":"snowflake-getting-started","status":"publish","type":"post","link":"https:\/\/garrens.com\/blog\/2018\/03\/02\/snowflake-getting-started\/","title":{"rendered":"Snowflake: Getting Started with Walkthrough"},"content":{"rendered":"\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" src=\"https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/11\/snowflake.png\" alt=\"\" class=\"wp-image-312\" width=\"86\" height=\"86\" srcset=\"https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/11\/snowflake.png 368w, https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/11\/snowflake-150x150.png 150w, https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/11\/snowflake-300x300.png 300w\" sizes=\"(max-width: 86px) 100vw, 86px\" \/><\/figure><\/div>\n\n\n\n<h4>What is Snowflake?<br><\/h4>\n\n\n\n<p><a href=\"https:\/\/www.snowflake.com\/\">Snowflake<\/a> is a new era relational SQL data warehouse built for the cloud that seeks to enable seamless and fully elastic access to business-critical data that satisfies everyone from Analysts to IT to Finance.<br><\/p>\n\n\n\n<h4>But why &#8211; aren&#8217;t there enough Data Warehouses already?!<\/h4>\n\n\n\n<p>tl;dr Quantity != Quality. <\/p>\n\n\n\n<p>Snowflake offers <em>decoupled<\/em> elastic compute and storage that is flexible enough to handle semi-structured data types such as JSON yet rigid enough to provide great performance (see <a href=\"https:\/\/fivetran.com\/blog\/warehouse-benchmark\">benchmark<\/a>) and consistency for real-time reporting. <br><\/p>\n\n\n\n<p>A<strong> Database<\/strong> is a logical container storing references to schemas and tables<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"1280\" height=\"689\" src=\"https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/db_schema_table.png\" alt=\"\" class=\"wp-image-274\" srcset=\"https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/db_schema_table.png 1280w, https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/db_schema_table-300x161.png 300w, https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/db_schema_table-768x413.png 768w, https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/db_schema_table-1024x551.png 1024w\" sizes=\"(max-width: 1280px) 100vw, 1280px\" \/><figcaption>A Database can have multiple Schemas which can contain multiple Tables &#8211; Captain Obvious for anyone familiar with SQL<\/figcaption><\/figure>\n\n\n\n<p><strong>Schemas<\/strong> are logical abstractions that contain tables<\/p>\n\n\n\n<p><strong>Tables<\/strong> contain metadata references to data types, columns and other details surrounding storage of actual data<br><\/p>\n\n\n\n<p><strong>Views<\/strong> are abstractions of arbitrary SQL queries<br><br>Read more about Databases, Schemas, Tables and Views <a href=\"https:\/\/docs.snowflake.net\/manuals\/user-guide\/databases.html\">here<\/a><br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"1198\" height=\"562\" src=\"https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-22-at-3.42.37-PM.png\" alt=\"\" class=\"wp-image-276\" srcset=\"https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-22-at-3.42.37-PM.png 1198w, https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-22-at-3.42.37-PM-300x141.png 300w, https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-22-at-3.42.37-PM-768x360.png 768w, https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-22-at-3.42.37-PM-1024x480.png 1024w\" sizes=\"(max-width: 1198px) 100vw, 1198px\" \/><figcaption>View on Snowflake sample weather table<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"516\" height=\"824\" src=\"http:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-23-at-10.59.30-AM.png\" alt=\"\" class=\"wp-image-281\" srcset=\"https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-23-at-10.59.30-AM.png 516w, https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-23-at-10.59.30-AM-188x300.png 188w\" sizes=\"(max-width: 516px) 100vw, 516px\" \/><figcaption>View metadata indicating the view&#8217;s output column names and types in worksheet tab<\/figcaption><\/figure>\n\n\n\n<p><strong><a href=\"https:\/\/docs.snowflake.net\/manuals\/user-guide\/querying-sequences.html\">Sequences<\/a><\/strong> generate unique numbers across sessions and statements<br><\/p>\n\n\n\n<p><strong><a href=\"https:\/\/docs.snowflake.net\/manuals\/user-guide\/data-load-local-file-system-create-stage.html\">Stages<\/a><\/strong> are locations where files are stored for loading into tables<\/p>\n\n\n\n<p><strong>File Formats<\/strong> are used to manage loading data in from supported file formats <\/p>\n\n\n\n<p>There are 4 default <strong>Roles:<\/strong>&nbsp;<\/p>\n\n\n\n<ol><li>ACCOUNTADMIN &#8211; can manage everything (e.g. warehouses, databases, billing, users, etc) in the account<br><\/li><li>SYSADMIN &#8211; can manage everything except account management (e.g. users &amp; billing)<\/li><li>SECURITYADMIN &#8211; can manage users and all facets of security (e.g. roles, policies, etc) including configuring existing warehouses, but cannot create warehouses<\/li><li>PUBLIC &#8211; can access warehouses, write queries, create tables, etc<br><\/li><\/ol>\n\n\n\n<h4>Ok, I&#8217;m sold &#8211; how can I get started?<br><\/h4>\n\n\n\n<p>Snowflake extends the typical SQL paradigm further than typically expected. With Snowflake, you can do basically anything and everything with SQL, from administrative tasks (e.g. user, database, and warehouse management) to traditional SQL query workloads (BI, analytics and engineering). Snowflake documentation already has a <em><a href=\"https:\/\/docs.snowflake.net\/manuals\/user-guide\/getting-started-tutorial.html\">Snowflake in 20 minutes<\/a><\/em> guide to getting started, which uses the snowsql command line to handle the entire process. Below, my guide will be visual (with screenshots) to show you how to do similar functionality using the web interface.<br><\/p>\n\n\n\n<ul><li>Sign-up (you will need a credit card) &amp; login @ <a href=\"https:\/\/www.snowflake.com\">https:\/\/www.snowflake.com<\/a> &#8211; Azure or AWS<\/li><li>Change your role to ACCOUNTADMIN<br><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"272\" height=\"137\" src=\"https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-23-at-12.23.11-PM.png\" alt=\"\" class=\"wp-image-285\"\/><\/figure>\n\n\n\n<ul><li>Create a warehouse<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"2548\" height=\"1366\" src=\"https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-22-at-3.16.13-PM.png\" alt=\"\" class=\"wp-image-269\" srcset=\"https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-22-at-3.16.13-PM.png 2548w, https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-22-at-3.16.13-PM-300x161.png 300w, https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-22-at-3.16.13-PM-768x412.png 768w, https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-22-at-3.16.13-PM-1024x549.png 1024w\" sizes=\"(max-width: 2548px) 100vw, 2548px\" \/><figcaption>Create a &#8220;virtual warehouse&#8221; which acts as the compute layer<\/figcaption><\/figure>\n\n\n\n<ul><li>Create a database<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" width=\"2450\" height=\"1218\" src=\"https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-22-at-3.19.06-PM.png\" alt=\"\" class=\"wp-image-270\" srcset=\"https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-22-at-3.19.06-PM.png 2450w, https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-22-at-3.19.06-PM-300x149.png 300w, https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-22-at-3.19.06-PM-768x382.png 768w, https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-22-at-3.19.06-PM-1024x509.png 1024w\" sizes=\"(max-width: 2450px) 100vw, 2450px\" \/><figcaption>Create a database, which contains references to schemas, tables, file formats and more<\/figcaption><\/figure><\/div>\n\n\n\n<ul><li>Open the database<br><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"1858\" height=\"570\" src=\"https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-22-at-3.22.28-PM.png\" alt=\"\" class=\"wp-image-272\" srcset=\"https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-22-at-3.22.28-PM.png 1858w, https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-22-at-3.22.28-PM-300x92.png 300w, https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-22-at-3.22.28-PM-768x236.png 768w, https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-22-at-3.22.28-PM-1024x314.png 1024w\" sizes=\"(max-width: 1858px) 100vw, 1858px\" \/><figcaption>Cracking open the database to look at options<\/figcaption><\/figure>\n\n\n\n<ul><li>Create a stage<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"2832\" height=\"1394\" src=\"https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-22-at-4.14.44-PM.png\" alt=\"\" class=\"wp-image-278\" srcset=\"https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-22-at-4.14.44-PM.png 2832w, https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-22-at-4.14.44-PM-300x148.png 300w, https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-22-at-4.14.44-PM-768x378.png 768w, https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-22-at-4.14.44-PM-1024x504.png 1024w\" sizes=\"(max-width: 2832px) 100vw, 2832px\" \/><figcaption>Snowflake, S3 or Azure can manage the stage storage location<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"1830\" height=\"1054\" src=\"https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-23-at-11.40.32-AM.png\" alt=\"\" class=\"wp-image-282\" srcset=\"https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-23-at-11.40.32-AM.png 1830w, https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-23-at-11.40.32-AM-300x173.png 300w, https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-23-at-11.40.32-AM-768x442.png 768w, https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-23-at-11.40.32-AM-1024x590.png 1024w\" sizes=\"(max-width: 1830px) 100vw, 1830px\" \/><figcaption>Name the stage and choose the schema<\/figcaption><\/figure>\n\n\n\n<ul><li>Create a <strong>file format<\/strong>&nbsp;for CSV (other options are JSON, XML, Avro, ORC and Parquet)<br><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"1218\" height=\"1304\" src=\"http:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-23-at-12.10.47-PM.png\" alt=\"\" class=\"wp-image-284\" srcset=\"https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-23-at-12.10.47-PM.png 1218w, https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-23-at-12.10.47-PM-280x300.png 280w, https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-23-at-12.10.47-PM-768x822.png 768w, https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-23-at-12.10.47-PM-956x1024.png 956w\" sizes=\"(max-width: 1218px) 100vw, 1218px\" \/><figcaption>Creating a CSV file format in the DEV database<\/figcaption><\/figure>\n\n\n\n<p>Loading a file on your local computer into Snowflake can be done in a number of ways, which can be reviewed <a href=\"https:\/\/docs.snowflake.net\/manuals\/user-guide-data-load.html\">here<\/a><br><br>We&#8217;re going to use the UI to load a file since this is a visual getting started guide.<\/p>\n\n\n\n<ul><li>Create a table (in a new worksheet)<br><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"438\" height=\"84\" src=\"https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-24-at-12.26.18-PM.png\" alt=\"\" class=\"wp-image-287\" srcset=\"https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-24-at-12.26.18-PM.png 438w, https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-24-at-12.26.18-PM-300x58.png 300w\" sizes=\"(max-width: 438px) 100vw, 438px\" \/><figcaption>New worksheet<\/figcaption><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE OR REPLACE TABLE \"DEV\".\"PUBLIC\".\"GREEN_TRIPS\" (\n  \"VENDORID\" NUMBER, \n  \"LPEP_PICKUP_DATETIME\" TIMESTAMP, \n  \"LPEP_DROPOFF_DATETIME\" TIMESTAMP, \n  \"STORE_AND_FWD_FLAG\" STRING, \n  \"RATECODEID\" NUMBER,\n  \"PULocationID\" NUMBER,\n  \"DOLocationID\" NUMBER,\n  \"passenger_count\" NUMBER,\n  \"trip_distance\" DOUBLE,\n  \"fare_amount\" DOUBLE,\n  \"extra\" DOUBLE,\n  \"mta_tax\" DOUBLE,\n  \"tip_amount\" DOUBLE,\n  \"tolls_amount\" DOUBLE,\n  \"ehail_fee\" STRING,\n  \"improvement_surcharge\" DOUBLE,\n  \"total_amount\" DOUBLE,\n  \"payment_type\" NUMBER,\n  \"trip_type\" NUMBER\n) COMMENT = 'NYC TLC Green Trip Data';<\/code><\/pre>\n\n\n\n<p>Hit Run<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"295\" height=\"117\" src=\"https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-24-at-12.27.26-PM.png\" alt=\"\" class=\"wp-image-288\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"319\" height=\"140\" src=\"https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-24-at-12.27.58-PM.png\" alt=\"\" class=\"wp-image-289\" srcset=\"https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-24-at-12.27.58-PM.png 319w, https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-24-at-12.27.58-PM-300x132.png 300w\" sizes=\"(max-width: 319px) 100vw, 319px\" \/><figcaption>Success!<\/figcaption><\/figure>\n\n\n\n<ul><li>Load file in via UI<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"788\" height=\"202\" src=\"https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-24-at-12.29.40-PM.png\" alt=\"\" class=\"wp-image-290\" srcset=\"https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-24-at-12.29.40-PM.png 788w, https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-24-at-12.29.40-PM-300x77.png 300w, https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-24-at-12.29.40-PM-768x197.png 768w\" sizes=\"(max-width: 788px) 100vw, 788px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"474\" height=\"185\" src=\"https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-24-at-12.31.52-PM.png\" alt=\"\" class=\"wp-image-292\" srcset=\"https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-24-at-12.31.52-PM.png 474w, https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-24-at-12.31.52-PM-300x117.png 300w\" sizes=\"(max-width: 474px) 100vw, 474px\" \/><\/figure>\n\n\n\n<p>Download a sample data file from the NYC Taxi and Limousine Commission (TLC) here: <a href=\"https:\/\/s3.amazonaws.com\/nyc-tlc\/trip+data\/green_tripdata_2018-06.csv\">Green trip data<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"474\" height=\"305\" src=\"https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-24-at-12.30.19-PM.png\" alt=\"\" class=\"wp-image-291\" srcset=\"https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-24-at-12.30.19-PM.png 474w, https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-24-at-12.30.19-PM-300x193.png 300w\" sizes=\"(max-width: 474px) 100vw, 474px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"472\" height=\"160\" src=\"https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-24-at-12.32.23-PM.png\" alt=\"\" class=\"wp-image-293\" srcset=\"https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-24-at-12.32.23-PM.png 472w, https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-24-at-12.32.23-PM-300x102.png 300w\" sizes=\"(max-width: 472px) 100vw, 472px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"472\" height=\"280\" src=\"https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-24-at-12.32.42-PM.png\" alt=\"\" class=\"wp-image-294\" srcset=\"https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-24-at-12.32.42-PM.png 472w, https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-24-at-12.32.42-PM-300x178.png 300w\" sizes=\"(max-width: 472px) 100vw, 472px\" \/><\/figure>\n\n\n\n<p>This is what the actual SQL would look like if you ran a version of these commands in SQL (such as in the snowsql command line client):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>put file:\/\/\/Users\/garren\/Downloads\/green_tripdata_2017-06.csv @SFSTAGE; \/\/ This uses the SFSTAGE named internal stage\n\nCOPY INTO \"DEV\".\"PUBLIC\".\"GREEN_TRIPS\" FROM @SFSTAGE\/green_tripdata_2017-06.csv FILE_FORMAT = '\"DEV\".\"PUBLIC\".\"BASE_CSV\"' ON_ERROR = 'ABORT_STATEMENT' PURGE = TRUE;<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT COUNT(*)\nFROM GREEN_TRIPS;<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"466\" height=\"162\" src=\"https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-24-at-1.16.59-PM.png\" alt=\"\" class=\"wp-image-295\" srcset=\"https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-24-at-1.16.59-PM.png 466w, https:\/\/garrens.com\/blog\/wp-content\/uploads\/2018\/10\/Screen-Shot-2018-10-24-at-1.16.59-PM-300x104.png 300w\" sizes=\"(max-width: 466px) 100vw, 466px\" \/><\/figure>\n\n\n\n<p><strong>Congrats! <\/strong>You&#8217;ve now setup your snowflake environment, created a table, loaded data into it and began consuming it! <\/p>\n\n\n\n<p><strong>Disclaimer<\/strong><br><br>I have no affiliation with Snowflake and was not asked to write this guide &#8211; I&#8217;m just a fan of technology solving real problems with great potential<br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is Snowflake? Snowflake is a new era relational SQL data warehouse built for the cloud that seeks to enable seamless and fully elastic access to business-critical data that satisfies everyone from Analysts to IT to Finance. But why &#8211; aren&#8217;t there enough Data Warehouses already?! tl;dr Quantity != Quality. Snowflake offers decoupled elastic compute&hellip; <a href=\"https:\/\/garrens.com\/blog\/2018\/03\/02\/snowflake-getting-started\/\" title=\"Read More\" class=\"read-more\">Continue reading<span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/garrens.com\/blog\/wp-json\/wp\/v2\/posts\/267"}],"collection":[{"href":"https:\/\/garrens.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/garrens.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/garrens.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/garrens.com\/blog\/wp-json\/wp\/v2\/comments?post=267"}],"version-history":[{"count":8,"href":"https:\/\/garrens.com\/blog\/wp-json\/wp\/v2\/posts\/267\/revisions"}],"predecessor-version":[{"id":334,"href":"https:\/\/garrens.com\/blog\/wp-json\/wp\/v2\/posts\/267\/revisions\/334"}],"wp:attachment":[{"href":"https:\/\/garrens.com\/blog\/wp-json\/wp\/v2\/media?parent=267"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/garrens.com\/blog\/wp-json\/wp\/v2\/categories?post=267"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/garrens.com\/blog\/wp-json\/wp\/v2\/tags?post=267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}