Skip to content

Instantly share code, notes, and snippets.

@gangtao
Last active March 21, 2025 23:11
Show Gist options
  • Select an option

  • Save gangtao/4bbcf8ce89559a04d346da68cd183632 to your computer and use it in GitHub Desktop.

Select an option

Save gangtao/4bbcf8ce89559a04d346da68cd183632 to your computer and use it in GitHub Desktop.
Import Iris dataset CSV into Timeplus
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