MCPcopy
hub / github.com/marimo-team/marimo / test_very_long_query

Method test_very_long_query

tests/_sql/test_sql_parse.py:478–489  ·  view source on GitHub ↗

Test parsing a very long query.

(self)

Source from the content-addressed store, hash-verified

476 assert isinstance(result, SqlParseResult)
477
478 def test_very_long_query(self):
479 """Test parsing a very long query."""
480 # Create a query with many columns
481 columns = ", ".join([f"{i} as col_{i}" for i in range(100)])
482 query = f"SELECT {columns}"
483
484 result, error = parse_sql(query, "duckdb")
485 assert error is None
486
487 assert result is not None
488 assert result.success is True
489 assert result.errors == []
490
491 def test_query_with_unicode(self):
492 """Test parsing query with Unicode characters."""

Callers

nothing calls this directly

Calls 3

parse_sqlFunction · 0.90
rangeFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected