tessl install tessl/pypi-connectorx@0.4.0Load data from databases to dataframes, the fastest way.
Agent Success
Agent success rate when using this tile
86%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.05x
Baseline
Agent success rate without this tile
82%
{
"context": "This criteria evaluates how well the engineer uses ConnectorX's pre-execution query configuration feature to run database session configuration commands before executing the main query. The focus is on proper use of the queries_before parameter with the read_sql function.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Import connectorx",
"description": "Correctly imports the connectorx package (typically as 'cx' or using 'from connectorx import read_sql')",
"max_score": 10
},
{
"name": "Use read_sql function",
"description": "Uses the read_sql function from connectorx to execute queries and load data into a dataframe",
"max_score": 20
},
{
"name": "Pass queries_before parameter",
"description": "Correctly passes the queries_before parameter to read_sql with the list of pre-execution configuration statements",
"max_score": 35
},
{
"name": "Configure session parameters",
"description": "Properly formats and passes session configuration statements (e.g., SET commands) through queries_before for PostgreSQL or MySQL",
"max_score": 25
},
{
"name": "Return query results",
"description": "Successfully returns the dataframe containing the query results after applying the pre-execution configuration",
"max_score": 10
}
]
}