Quick Start with Copy Command
In this lab, experience how to quickly use the COPY command in Singdata Lakehouse to load a local CSV file into a table, and perform basic data exploration and analysis.
The lab code runs in Zeppelin Notebook; the appendix provides related guidance. The lab code can also run in various local database management tools (those that support the COPY command for accessing local files).
Create a New Schema for This Lab
Create a Table
Load Data — COPY FROM FILE
Download central_park_weather.csv, click "Download raw file" to save it locally, and update the directory path (/opt/data/) in the code above to match your download location.
Then verify that the data has been loaded successfully:
Explore Data
Analyze Data
Clean Up
Congratulations, You're Done!
Enjoy and keep learning!
Appendix
Download the Zeppelin Notebook Source File
The code in this article is also available as a Zeppelin notebook. If you want to run it directly, follow the documentation to install Zeppelin.
