base_tablePreview
Preview data samples and table structure from Teradata databases to understand schema and content before analysis or querying.
Instructions
This function returns data sample and inferred structure from a database table or view via SQLAlchemy, bind parameters if provided (prepared SQL), and return the fully rendered SQL (with literals) in metadata.
Arguments: table_name - table or view name database_name - Database name
Returns: ResponseType: formatted response with query results + metadata
Input Schema
Name | Required | Description | Default |
---|---|---|---|
database_name | No | ||
table_name | Yes |
Input Schema (JSON Schema)
{
"properties": {
"database_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Database Name"
},
"table_name": {
"title": "Table Name",
"type": "string"
}
},
"required": [
"table_name"
],
"type": "object"
}