mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2025-12-27 16:32:54 +00:00
* temp commit * feat: impl Display for CreateTable statement * feat: impl show create table for standalone * fix: forgot show.rs * feat: clean code * fix: typo * feat: impl show create table for distributed * test: add show create table sqlness test * fix: typo * fix: sqlness tests * feat: render partition rules for distributed table * Update src/sql/src/statements.rs Co-authored-by: Yingwen <realevenyag@gmail.com> * Update src/sql/src/statements.rs Co-authored-by: Yingwen <realevenyag@gmail.com> * Update src/sql/src/statements.rs Co-authored-by: Yingwen <realevenyag@gmail.com> * Update src/sql/src/statements/create.rs Co-authored-by: Yingwen <realevenyag@gmail.com> * chore: by CR comments * fix: compile error * fix: missing column comments and extra table options * test: add show create table test * test: add show create table test * chore: timestamp precision * fix: test --------- Co-authored-by: Yingwen <realevenyag@gmail.com>
26 lines
1.8 KiB
SQL
26 lines
1.8 KiB
SQL
CREATE TABLE integers (
|
|
ts TIMESTAMP,
|
|
TIME INDEX(ts)
|
|
);
|
|
|
|
INSERT INTO integers VALUES (1), (2), (3), (4), (5);
|
|
|
|
SELECT * FROM integers;
|
|
|
|
-- Test insert with long string constant
|
|
CREATE TABLE IF NOT EXISTS presentations (
|
|
presentation_date TIMESTAMP,
|
|
author VARCHAR NOT NULL,
|
|
title STRING NOT NULL,
|
|
bio VARCHAR,
|
|
abstract VARCHAR,
|
|
zoom_link VARCHAR,
|
|
TIME INDEX(presentation_date)
|
|
);
|
|
|
|
insert into presentations values (1, 'Patrick Damme', 'Analytical Query Processing Based on Continuous Compression of Intermediates', NULL, 'Modern in-memory column-stores are widely accepted as the adequate database architecture for the efficient processing of complex analytical queries over large relational data volumes. These systems keep their entire data in main memory and typically employ lightweight compression to address the bottleneck between main memory and CPU. Numerous lightweight compression algorithms have been proposed in the past years, but none of them is suitable in all cases. While lightweight compression is already well established for base data, the efficient representation of intermediate results generated during query processing has attracted insufficient attention so far, although in in-memory systems, accessing intermeFdiates is as expensive as accessing base data. Thus, our vision is a continuous use of lightweight compression for all intermediates in a query execution plan, whereby a suitable compression algorithm should be selected for each intermediate. In this talk, I will provide an overview of our research in the context of this vision, including an experimental survey of lightweight compression algorithms, our compression-enabled processing model, and our compression-aware query optimization strategies.', 'https://zoom.us/j/7845983526');
|
|
|
|
DROP TABLE integers;
|
|
|
|
DROP TABLE presentations;
|