Note:
Permissions for the corresponding TCHouse-P databases and tables need to be set in TCHouse-P.
Feature Overview
Submit a TCHouse-P task execution to the WeData workflow scheduling platform.
Sample code:
CREATE DATABASE wedata_demo_db;
Switch the database to the corresponding one in the TCHouse-P task.
Execute SQL on the task page:
CREATE SCHEMA demo;
CREATE TABLE demo.user_info (
id SERIAL PRIMARY KEY,
name VARCHAR(255) NOT NULL
);
INSERT INTO demo.user_info (name) VALUES ('Alice'), ('Bob');
select * from demo.user_info;
SELECT schema_name
FROM information_schema.schemata
WHERE catalog_name = 'wedata_demo_db';
SELECT table_name
FROM information_schema.tables
WHERE table_schema = 'demo';
Was this page helpful?