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 protocol selection capabilities to optimize database queries. It focuses specifically on proper usage of the protocol parameter in read_sql() and understanding when to use binary vs CSV protocols.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Import connectorx",
"description": "The solution imports the connectorx package (typically as 'import connectorx as cx')",
"max_score": 10
},
{
"name": "Use read_sql function",
"description": "The solution uses connectorx.read_sql() or cx.read_sql() as the primary method to load data from the database",
"max_score": 20
},
{
"name": "Binary protocol selection",
"description": "When bandwidth is 'high', the solution correctly passes protocol='binary' to the read_sql() function",
"max_score": 25
},
{
"name": "CSV protocol selection",
"description": "When bandwidth is 'low', the solution correctly passes protocol='csv' to the read_sql() function",
"max_score": 25
},
{
"name": "Return protocol used",
"description": "The solution returns the protocol name ('binary' or 'csv') as part of the tuple, correctly identifying which protocol was used",
"max_score": 10
},
{
"name": "Input validation",
"description": "The solution validates the bandwidth parameter and raises ValueError for invalid values (not 'high' or 'low')",
"max_score": 10
}
]
}