Quick Start with Copy Command
Through this lab, experience how to quickly use the Singdata Lakehouse COPY command to load a local CSV file into a table and perform basic data exploration and analysis.
The code in this lab runs in Zeppelin Notebook, and the appendix provides related guidance. Additionally, the lab code can also run in various local database management tools (which support COPY command access to local files).
Create a New Schema for This Lab
Create a Table
Load Data - COPY FROM FILE
Please download central_park_weather.csv, click "Download raw file" to download it locally, and modify the directory path (/opt/data/) in the above code to your download directory.
Then verify whether the data has been loaded successfully:
Explore Data
Analyze Data
Clean Up
Congratulations, Mission Complete!
Enjoy and continue learning!
Appendix
Download Zeppelin Notebook Source File
The code in this document is also available to run in Zeppelin. If you want to run the code directly, please follow the documentation instructions to install Zeppelin.
