Skip to content

Commit

Permalink
Merge pull request #680 from Teradata/bug_fix_dataload
Browse files Browse the repository at this point in the history
bug fix for data loading notebook in Getting Started
  • Loading branch information
DallasBowden authored Aug 1, 2024
2 parents 2ada709 + 597827d commit ded1078
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions Getting_Started/Data_Loading/Data_Loading_SQL.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@
"<p style = 'font-size:12px;font-family:Courier'> CREATE AUTHORIZATION {name} AS DEFINER TRUSTED<br>\n",
"USER '{access_key}'<br>\n",
"PASSWORD '{password}';<br>\n",
"</p>\n"
"</p>\n",
"<p style = 'font-size:16px;font-family:Arial;color:#00233C'>For public buckets we dont need any authorizationn. For our example we have a public read-only bucket hence we won't need authorization in queries below. </p>"
]
},
{
Expand All @@ -206,7 +207,7 @@
" <li> \"/gs\" - to access files in google cloud storage, used below</li>\n",
" <li> \"/s3\" - to access AWS buckets (Used in the UseCases/Deep_History_via_Object_Store)</li>\n",
" <li> \"/az\" - to access Azure blob storage</li>\n",
"</ul>"
"</ul>\n"
]
},
{
Expand All @@ -217,8 +218,7 @@
"outputs": [],
"source": [
"SELECT TOP 2 * FROM (\n",
"LOCATION = '/gs/storage.googleapis.com/clearscape_analytics_demo_data/Data_Load/'\n",
"AUTHORIZATION = gs_tables_db.auth \n",
"LOCATION = '/gs/storage.googleapis.com/clearscape_analytics_demo_data/Data_Load/Retail_Data_sample.csv'\n",
") AS D;"
]
},
Expand Down Expand Up @@ -249,9 +249,8 @@
"metadata": {},
"outputs": [],
"source": [
"CREATE FOREIGN TABLE Retail_Data_FT,\n",
"EXTERNAL SECURITY gs_tables_db.auth\n",
"USING (LOCATION('/gs/storage.googleapis.com/clearscape_analytics_demo_data/Data_Load/'));"
"CREATE FOREIGN TABLE Retail_Data_FT\n",
"USING (LOCATION('/gs/storage.googleapis.com/clearscape_analytics_demo_data/Data_Load/Retail_Data_sample.csv'));"
]
},
{
Expand Down Expand Up @@ -312,7 +311,6 @@
" Country\n",
"FROM (\n",
" LOCATION = '/gs/storage.googleapis.com/clearscape_analytics_demo_data/Data_Load/Retail_Data_sample.csv'\n",
"AUTHORIZATION = gs_tables_db.auth\n",
") AS d;"
]
},
Expand Down

0 comments on commit ded1078

Please sign in to comment.