SQL-GPT Contexts
Represents a collection of clauses that comprise a SQL-GPT context.
Example:
Parameters
Fully qualified name of the context. (e.g. “schema.context”)
A list of GPUdbTableClause objects representing the Kinetica tables (and metadata) referenced in this context.
A GPUdbSamplesClause object representing query/answer pairs referenced in this context.
Format this GPUdbSqlContext as a SQL CREATE CONTEXT statement. The result can be passed to GPUDB.execute() to create the context.
The SQL-formatted CREATE CONTEXT statement.
A GPUdbTableClause represents the table clause of a SQL-GPT context and can convert its contents to the SQL form expected by a CREATE CONTEXT statement.
Example:
Parameters
Fully qualified table name (e.g. “schema.table”)
Comment for the table.
A list of rules that apply to the table.
A dictionary with mapping of column names to column comments.
Format the clause as a SQL string.
A GPUdbSamplesClause represents the samples clause of a SQL-GPT context and can convert its contents to the SQL form expected by a CREATE CONTEXT statement.
Example:
Parameters
A list of tuples containing question/sql pairs.
Format the clause as a SQL string.