Skip to main content

Wren Engine API (0.15.1)

Download OpenAPI specification:Download

connector

Dry Plan Deprecated

get the planned WrenSQL

header Parameters
Headers (string) or Headers (null) (Headers)
Request Body schema: application/json
required
manifestStr
required
string (Manifeststr)

Base64 manifest

sql
required
string (Sql)

Responses

Request samples

Content type
application/json
{
  • "manifestStr": "string",
  • "sql": "string"
}

Response samples

Content type
application/json
"string"

Dry Plan For Data Source Deprecated

get the dialect SQL for the specified data source

path Parameters
data_source
required
string (DataSource)
Enum: "bigquery" "canner" "clickhouse" "mssql" "mysql" "oracle" "postgres" "snowflake" "trino" "local_file" "s3_file" "minio_file" "gcs_file"
header Parameters
Headers (string) or Headers (null) (Headers)
Request Body schema: application/json
required
manifestStr
required
string (Manifeststr)

Base64 manifest

sql
required
string (Sql)

Responses

Request samples

Content type
application/json
{
  • "manifestStr": "string",
  • "sql": "string"
}

Response samples

Content type
application/json
"string"

Get Constraints Deprecated

get the constraints of the specified data source

path Parameters
data_source
required
string (DataSource)
Enum: "bigquery" "canner" "clickhouse" "mssql" "mysql" "oracle" "postgres" "snowflake" "trino" "local_file" "s3_file" "minio_file" "gcs_file"
header Parameters
Headers (string) or Headers (null) (Headers)
Request Body schema: application/json
required
required
BigQueryConnectionInfo (object) or CannerConnectionInfo (object) or ConnectionUrl (object) or MSSqlConnectionInfo (object) or MySqlConnectionInfo (object) or OracleConnectionInfo (object) or PostgresConnectionInfo (object) or SnowflakeConnectionInfo (object) or TrinoConnectionInfo (object) or LocalFileConnectionInfo (object) or S3FileConnectionInfo (object) or MinioFileConnectionInfo (object) or GcsFileConnectionInfo (object) (Connectioninfo)
Any of
credentials
required
string <password> (Credentials)

Base64 encode credentials.json

dataset_id
required
string <password> (Dataset Id)

BigQuery dataset id

project_id
required
string <password> (Project Id)

GCP project id

Responses

Request samples

Content type
application/json
{
  • "connectionInfo": {
    }
}

Response samples

Content type
application/json
[
  • {
    }
]

Get Table List Deprecated

get the table list of the specified data source

path Parameters
data_source
required
string (DataSource)
Enum: "bigquery" "canner" "clickhouse" "mssql" "mysql" "oracle" "postgres" "snowflake" "trino" "local_file" "s3_file" "minio_file" "gcs_file"
header Parameters
Headers (string) or Headers (null) (Headers)
Request Body schema: application/json
required
required
BigQueryConnectionInfo (object) or CannerConnectionInfo (object) or ConnectionUrl (object) or MSSqlConnectionInfo (object) or MySqlConnectionInfo (object) or OracleConnectionInfo (object) or PostgresConnectionInfo (object) or SnowflakeConnectionInfo (object) or TrinoConnectionInfo (object) or LocalFileConnectionInfo (object) or S3FileConnectionInfo (object) or MinioFileConnectionInfo (object) or GcsFileConnectionInfo (object) (Connectioninfo)
Any of
credentials
required
string <password> (Credentials)

Base64 encode credentials.json

dataset_id
required
string <password> (Dataset Id)

BigQuery dataset id

project_id
required
string <password> (Project Id)

GCP project id

Responses

Request samples

Content type
application/json
{
  • "connectionInfo": {
    }
}

Response samples

Content type
application/json
[
  • {
    }
]

Get Db Version Deprecated

get the version of the specified data source

path Parameters
data_source
required
string (DataSource)
Enum: "bigquery" "canner" "clickhouse" "mssql" "mysql" "oracle" "postgres" "snowflake" "trino" "local_file" "s3_file" "minio_file" "gcs_file"
Request Body schema: application/json
required
required
BigQueryConnectionInfo (object) or CannerConnectionInfo (object) or ConnectionUrl (object) or MSSqlConnectionInfo (object) or MySqlConnectionInfo (object) or OracleConnectionInfo (object) or PostgresConnectionInfo (object) or SnowflakeConnectionInfo (object) or TrinoConnectionInfo (object) or LocalFileConnectionInfo (object) or S3FileConnectionInfo (object) or MinioFileConnectionInfo (object) or GcsFileConnectionInfo (object) (Connectioninfo)
Any of
credentials
required
string <password> (Credentials)

Base64 encode credentials.json

dataset_id
required
string <password> (Dataset Id)

BigQuery dataset id

project_id
required
string <password> (Project Id)

GCP project id

Responses

Request samples

Content type
application/json
{
  • "connectionInfo": {
    }
}

Response samples

Content type
application/json
"string"

Model Substitute Deprecated

get the SQL which table name is substituted

path Parameters
data_source
required
string (DataSource)
Enum: "bigquery" "canner" "clickhouse" "mssql" "mysql" "oracle" "postgres" "snowflake" "trino" "local_file" "s3_file" "minio_file" "gcs_file"
header Parameters
Headers (string) or Headers (null) (Headers)
Request Body schema: application/json
required
required
BigQueryConnectionInfo (object) or CannerConnectionInfo (object) or ConnectionUrl (object) or MSSqlConnectionInfo (object) or MySqlConnectionInfo (object) or OracleConnectionInfo (object) or PostgresConnectionInfo (object) or SnowflakeConnectionInfo (object) or TrinoConnectionInfo (object) or LocalFileConnectionInfo (object) or S3FileConnectionInfo (object) or MinioFileConnectionInfo (object) or GcsFileConnectionInfo (object) (Connectioninfo)
manifestStr
required
string (Manifeststr)

Base64 manifest

sql
required
string (Sql)

Responses

Request samples

Content type
application/json
{
  • "connectionInfo": {
    },
  • "manifestStr": "string",
  • "sql": "string"
}

Response samples

Content type
application/json
"string"

Query Deprecated

query the specified data source

path Parameters
data_source
required
string (DataSource)
Enum: "bigquery" "canner" "clickhouse" "mssql" "mysql" "oracle" "postgres" "snowflake" "trino" "local_file" "s3_file" "minio_file" "gcs_file"
query Parameters
dryRun
boolean (Dryrun)
Default: false

enable dryRun mode for validating SQL only

cacheEnable
boolean (Cacheenable)
Default: false

enable query cache mode

Limit (integer) or Limit (null) (Limit)

limit the number of rows returned

header Parameters
Headers (string) or Headers (null) (Headers)
Request Body schema: application/json
required
required
BigQueryConnectionInfo (object) or CannerConnectionInfo (object) or ConnectionUrl (object) or MSSqlConnectionInfo (object) or MySqlConnectionInfo (object) or OracleConnectionInfo (object) or PostgresConnectionInfo (object) or SnowflakeConnectionInfo (object) or TrinoConnectionInfo (object) or LocalFileConnectionInfo (object) or S3FileConnectionInfo (object) or MinioFileConnectionInfo (object) or GcsFileConnectionInfo (object) (Connectioninfo)
manifestStr
required
string (Manifeststr)

Base64 manifest

sql
required
string (Sql)

Responses

Request samples

Content type
application/json
{
  • "connectionInfo": {
    },
  • "manifestStr": "string",
  • "sql": "string"
}

Response samples

Content type
application/json
null

Validate Deprecated

validate the specified rule

path Parameters
data_source
required
string (DataSource)
Enum: "bigquery" "canner" "clickhouse" "mssql" "mysql" "oracle" "postgres" "snowflake" "trino" "local_file" "s3_file" "minio_file" "gcs_file"
rule_name
required
string (Rule Name)
header Parameters
Headers (string) or Headers (null) (Headers)
Request Body schema: application/json
required
required
BigQueryConnectionInfo (object) or CannerConnectionInfo (object) or ConnectionUrl (object) or MSSqlConnectionInfo (object) or MySqlConnectionInfo (object) or OracleConnectionInfo (object) or PostgresConnectionInfo (object) or SnowflakeConnectionInfo (object) or TrinoConnectionInfo (object) or LocalFileConnectionInfo (object) or S3FileConnectionInfo (object) or MinioFileConnectionInfo (object) or GcsFileConnectionInfo (object) (Connectioninfo)
manifestStr
required
string (Manifeststr)

Base64 manifest

required
object (Parameters)

Responses

Request samples

Content type
application/json
{
  • "connectionInfo": {
    },
  • "manifestStr": "string",
  • "parameters": {
    }
}

Response samples

Content type
application/json
null

Dry Plan

get the planned WrenSQL

header Parameters
Headers (string) or Headers (null) (Headers)
Request Body schema: application/json
required
manifestStr
required
string (Manifeststr)

Base64 manifest

sql
required
string (Sql)

Responses

Request samples

Content type
application/json
{
  • "manifestStr": "string",
  • "sql": "string"
}

Response samples

Content type
application/json
"string"

Dry Plan For Data Source

get the dialect SQL for the specified data source

path Parameters
data_source
required
string (DataSource)
Enum: "bigquery" "canner" "clickhouse" "mssql" "mysql" "oracle" "postgres" "snowflake" "trino" "local_file" "s3_file" "minio_file" "gcs_file"
header Parameters
Headers (string) or Headers (null) (Headers)
Request Body schema: application/json
required
manifestStr
required
string (Manifeststr)

Base64 manifest

sql
required
string (Sql)

Responses

Request samples

Content type
application/json
{
  • "manifestStr": "string",
  • "sql": "string"
}

Response samples

Content type
application/json
"string"

Functions

get the available function list of the specified data source

path Parameters
data_source
required
string (DataSource)
Enum: "bigquery" "canner" "clickhouse" "mssql" "mysql" "oracle" "postgres" "snowflake" "trino" "local_file" "s3_file" "minio_file" "gcs_file"
header Parameters
Headers (string) or Headers (null) (Headers)

Responses

Response samples

Content type
application/json
null

Model Substitute

get the SQL which table name is substituted

path Parameters
data_source
required
string (DataSource)
Enum: "bigquery" "canner" "clickhouse" "mssql" "mysql" "oracle" "postgres" "snowflake" "trino" "local_file" "s3_file" "minio_file" "gcs_file"
header Parameters
Headers (string) or Headers (null) (Headers)
Request Body schema: application/json
required
required
BigQueryConnectionInfo (object) or CannerConnectionInfo (object) or ConnectionUrl (object) or MSSqlConnectionInfo (object) or MySqlConnectionInfo (object) or OracleConnectionInfo (object) or PostgresConnectionInfo (object) or SnowflakeConnectionInfo (object) or TrinoConnectionInfo (object) or LocalFileConnectionInfo (object) or S3FileConnectionInfo (object) or MinioFileConnectionInfo (object) or GcsFileConnectionInfo (object) (Connectioninfo)
manifestStr
required
string (Manifeststr)

Base64 manifest

sql
required
string (Sql)

Responses

Request samples

Content type
application/json
{
  • "connectionInfo": {
    },
  • "manifestStr": "string",
  • "sql": "string"
}

Response samples

Content type
application/json
"string"

Query

query the specified data source

path Parameters
data_source
required
string (DataSource)
Enum: "bigquery" "canner" "clickhouse" "mssql" "mysql" "oracle" "postgres" "snowflake" "trino" "local_file" "s3_file" "minio_file" "gcs_file"
query Parameters
dryRun
boolean (Dryrun)
Default: false

enable dryRun mode for validating SQL only

cacheEnable
boolean (Cacheenable)
Default: false

enable query cache mode

Limit (integer) or Limit (null) (Limit)

limit the number of rows returned

header Parameters
Headers (string) or Headers (null) (Headers)
Request Body schema: application/json
required
required
BigQueryConnectionInfo (object) or CannerConnectionInfo (object) or ConnectionUrl (object) or MSSqlConnectionInfo (object) or MySqlConnectionInfo (object) or OracleConnectionInfo (object) or PostgresConnectionInfo (object) or SnowflakeConnectionInfo (object) or TrinoConnectionInfo (object) or LocalFileConnectionInfo (object) or S3FileConnectionInfo (object) or MinioFileConnectionInfo (object) or GcsFileConnectionInfo (object) (Connectioninfo)
manifestStr
required
string (Manifeststr)

Base64 manifest

sql
required
string (Sql)

Responses

Request samples

Content type
application/json
{
  • "connectionInfo": {
    },
  • "manifestStr": "string",
  • "sql": "string"
}

Response samples

Content type
application/json
null

Validate

validate the specified rule

path Parameters
data_source
required
string (DataSource)
Enum: "bigquery" "canner" "clickhouse" "mssql" "mysql" "oracle" "postgres" "snowflake" "trino" "local_file" "s3_file" "minio_file" "gcs_file"
rule_name
required
string (Rule Name)
header Parameters
Headers (string) or Headers (null) (Headers)
Request Body schema: application/json
required
required
BigQueryConnectionInfo (object) or CannerConnectionInfo (object) or ConnectionUrl (object) or MSSqlConnectionInfo (object) or MySqlConnectionInfo (object) or OracleConnectionInfo (object) or PostgresConnectionInfo (object) or SnowflakeConnectionInfo (object) or TrinoConnectionInfo (object) or LocalFileConnectionInfo (object) or S3FileConnectionInfo (object) or MinioFileConnectionInfo (object) or GcsFileConnectionInfo (object) (Connectioninfo)
manifestStr
required
string (Manifeststr)

Base64 manifest

required
object (Parameters)

Responses

Request samples

Content type
application/json
{
  • "connectionInfo": {
    },
  • "manifestStr": "string",
  • "parameters": {
    }
}

Response samples

Content type
application/json
null

analysis

Analyze Sql Deprecated

Request Body schema: application/json
required
manifestStr
required
string (Manifeststr)

Base64 manifest

sql
required
string (Sql)

Responses

Request samples

Content type
application/json
{
  • "manifestStr": "string",
  • "sql": "string"
}

Response samples

Content type
application/json
[
  • { }
]

Analyze Sql Batch Deprecated

Request Body schema: application/json
required
manifestStr
required
string (Manifeststr)

Base64 manifest

sqls
required
Array of strings (Sqls)

Responses

Request samples

Content type
application/json
{
  • "manifestStr": "string",
  • "sqls": [
    ]
}

Response samples

Content type
application/json
[
  • [
    ]
]

BigQueryConnectionInfo

credentials
required
string <password> (Credentials)

Base64 encode credentials.json

dataset_id
required
string <password> (Dataset Id)

BigQuery dataset id

project_id
required
string <password> (Project Id)

GCP project id

{
  • "credentials": "eyJ...",
  • "dataset_id": "my_dataset",
  • "project_id": "my-project"
}

CannerConnectionInfo

enableSSL
boolean (Enablessl)
Default: false

Enable SSL connection

host
required
string <password> (Host)

the hostname of your database

pat
required
string <password> (Pat)

the personal access token of your database

port
required
string <password> (Port)

the port of your database

user
required
string <password> (User)

the username of your database

workspace
required
string <password> (Workspace)

the workspace of your database

{
  • "enableSSL": false,
  • "host": "localhost",
  • "pat": "eyJ...",
  • "port": "8080",
  • "user": "admin",
  • "workspace": "default"
}

GcsFileConnectionInfo

bucket
required
string <password> (Bucket)

the name of the gcs bucket

credentials
string <password> (Credentials)

Base64 encode credentials.json

format
string (Format)
Default: "csv"

File format

key_id
required
string <password> (Key Id)

the key id of the gcs bucket

secret_key
required
string <password> (Secret Key)

the secret key of the gcs bucket

url
string <password> (Url)
Default: "/"

the root path of the gcs bucket

{
  • "bucket": "my-bucket",
  • "credentials": "eyJ...",
  • "format": "csv",
  • "key_id": "my-key-id",
  • "secret_key": "my-secret-key",
  • "url": "/data"
}

LocalFileConnectionInfo

format
string (Format)
Default: "csv"

File format

url
string <password> (Url)
Default: "/"

the root path of the local file

{
  • "format": "csv",
  • "url": "/data"
}

MSSqlConnectionInfo

TDS_Version
string (Tds Version)
Default: "8.0"

The TDS version to use

database
required
string <password> (Database)

the database name of your database

driver
string (Driver)
Default: "ODBC Driver 18 for SQL Server"

The ODBC driver to use

host
required
string <password> (Host)

the hostname of your database

Kwargs (object) or Kwargs (null) (Kwargs)

Additional keyword arguments to pass to PyODBC

Password (string) or Password (null) (Password)

the password of your database

port
required
string <password> (Port)

the port of your database

user
required
string <password> (User)

the username of your database

{
  • "TDS_Version": "8.0",
  • "database": "master",
  • "driver": "ODBC Driver 18 for SQL Server",
  • "host": "localhost",
  • "kwargs": {
    },
  • "password": "password",
  • "port": "1433",
  • "user": "sa"
}

MinioFileConnectionInfo

access_key
required
string <password> (Access Key)

the account of the minio bucket

bucket
required
string <password> (Bucket)

the name of the minio bucket

endpoint
required
string <password> (Endpoint)

the endpoint of the minio bucket

format
string (Format)
Default: "csv"

File format

secret_key
required
string <password> (Secret Key)

the The password of the minio bucket

ssl_enabled
boolean (Ssl Enabled)
Default: false

use the ssl connection or not

url
string <password> (Url)
Default: "/"

the root path of the minio bucket

{
  • "access_key": "my-account",
  • "bucket": "my-bucket",
  • "endpoint": "localhost:9000",
  • "format": "csv",
  • "secret_key": "my-password",
  • "ssl_enabled": true,
  • "url": "/data"
}

MySqlConnectionInfo

database
required
string <password> (Database)

the database name of your database

host
required
string <password> (Host)

the hostname of your database

Kwargs (object) or Kwargs (null) (Kwargs)

Additional keyword arguments to pass to PyMySQL

Password (string) or Password (null) (Password)

the password of your database

port
required
string <password> (Port)

the port of your database

Sslca (string) or Sslca (null) (Sslca)

The path to the CA certificate file

Sslmode (string) or Sslmode (null) (Sslmode)
Default: "ENABLED"

Use ssl connection or not. The default value is ENABLED because MySQL uses caching_sha2_password by default and the driver MySQLdb support caching_sha2_password with ssl only.

user
required
string <password> (User)

the username of your database

{
  • "database": "default",
  • "host": "localhost",
  • "kwargs": {
    },
  • "password": "password",
  • "port": "3306",
  • "sslMode": "DISABLED",
  • "user": "root"
}

OracleConnectionInfo

database
required
string <password> (Database)

the database name of your database

host
required
string <password> (Host)

the hostname of your database

Password (string) or Password (null) (Password)

the password of your database

port
required
string <password> (Port)

the port of your database

user
required
string <password> (User)

the username of your database

{
  • "database": "orcl",
  • "host": "localhost",
  • "password": "password",
  • "port": 1521,
  • "user": "admin"
}

PostgresConnectionInfo

database
required
string <password> (Database)

the database name of your database

host
required
string <password> (Host)

the hostname of your database

Password (string) or Password (null) (Password)

the password of your database

port
required
string <password> (Port)

the port of your database

user
required
string <password> (User)

the username of your database

{
  • "database": "postgres",
  • "host": "localhost",
  • "password": "password",
  • "port": 5432,
  • "user": "postgres"
}

S3FileConnectionInfo

access_key
required
string <password> (Access Key)

the access key of the s3 bucket

bucket
required
string <password> (Bucket)

the name of the s3 bucket

format
string (Format)
Default: "csv"

File format

region
required
string <password> (Region)

the region of the s3 bucket

secret_key
required
string <password> (Secret Key)

the secret key of the s3 bucket

url
string <password> (Url)
Default: "/"

the root path of the s3 bucket

{
  • "access_key": "my-access-key",
  • "bucket": "my-bucket",
  • "format": "csv",
  • "region": "us-west-2",
  • "secret_key": "my-secret-key",
  • "url": "/data"
}

SnowflakeConnectionInfo

account
required
string <password> (Account)

the account name of your database

database
required
string <password> (Database)

the database name of your database

password
required
string <password> (Password)

the password of your database

schema
required
string <password> (Schema)

the schema name of your database

user
required
string <password> (User)

the username of your database

{
  • "account": "myaccount",
  • "database": "mydb",
  • "password": "password",
  • "schema": "myschema",
  • "user": "admin"
}

TrinoConnectionInfo

catalog
required
string <password> (Catalog)

the catalog name of your database

host
required
string <password> (Host)

the hostname of your database

Password (string) or Password (null) (Password)

the password of your database

port
string <password> (Port)
Default: "8080"

the port of your database

schema
required
string <password> (Schema)

the schema name of your database

User (string) or User (null) (User)

the username of your database

{
  • "catalog": "hive",
  • "host": "localhost",
  • "password": "password",
  • "port": "8080",
  • "schema": "default",
  • "user": "admin"
}