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

Method test_with_function

tests/_ast/test_sql_visitor.py:525–530  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

523 }
524
525 def test_with_function(self) -> None:
526 sql = """
527 SELECT *, embedding(text) as text_embedding
528 FROM prompts;
529 """
530 assert find_sql_refs(sql) == {SQLRef(table="prompts")}
531
532 def test_with_schema(self) -> None:
533 sql = "SELECT * FROM schema1.table1;"

Callers

nothing calls this directly

Calls 2

find_sql_refsFunction · 0.90
SQLRefClass · 0.90

Tested by

no test coverage detected