Access data in LindormTable

Updated at:

Use SQL to read and write data in LindormTable wide tables from Lindorm Distributed Processing System (LDPS).

Prerequisites

Before you begin, ensure that you have:

Access data in a wide table

LindormTable wide tables are accessible through the lindorm_table catalog in LDPS. LDPS supports data manipulation language (DML) operations on wide tables. Data definition language (DDL) operations and partitioning are not supported.

The typical workflow is: switch to the lindorm_table catalog, verify the table schema, then run your DML statements.

Switch to the catalog

USE lindorm_table;

Query the table schema

SHOW CREATE TABLE test;

The output looks like:

+----------------------------------------------------+
| CREATE TABLE default.test (                        |
|  `id` INT,                                         |
|  `name` STRING)                                    |
|                                                    |
+----------------------------------------------------+

Insert data

INSERT INTO test VALUES (0, 'Jay');

Query data

SELECT * FROM test;

For the full list of supported SQL syntax, see DML statements.