-
-
Save gangtao/4bbcf8ce89559a04d346da68cd183632 to your computer and use it in GitHub Desktop.
Import Iris dataset CSV into Timeplus
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DROP STREAM IF EXISTS iris; | |
| CREATE STREAM IF NOT EXISTS iris | |
| ( | |
| `sepal.length` float64, | |
| `sepal.width` float64, | |
| `petal.length` float64, | |
| `petal.width` float64, | |
| `variety` string | |
| ); | |
| INSERT INTO iris ( | |
| `sepal.length`, | |
| `sepal.width`, | |
| `petal.length`, | |
| `petal.width`, | |
| `variety` | |
| ) | |
| SELECT * | |
| FROM url('https://tp-solutions.s3.us-west-2.amazonaws.com/iris.csv', 'CSVWithNames'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment