MCPcopy Index your code
hub / github.com/tobymao/sqlglot / test_lambda

Method test_lambda

tests/test_diff.py:50–65  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

48 )
49
50 def test_lambda(self):
51 self._validate_delta_only(
52 diff_delta_only(
53 parse_one("SELECT a, b, c, x(a -> a)"), parse_one("SELECT a, b, c, x(b -> b)")
54 ),
55 [
56 Update(
57 source=exp.Lambda(
58 this=exp.to_identifier("a"), expressions=[exp.to_identifier("a")]
59 ),
60 target=exp.Lambda(
61 this=exp.to_identifier("b"), expressions=[exp.to_identifier("b")]
62 ),
63 ),
64 ],
65 )
66
67 def test_udf(self):
68 self._validate_delta_only(

Callers

nothing calls this directly

Calls 4

_validate_delta_onlyMethod · 0.95
parse_oneFunction · 0.90
UpdateClass · 0.90
diff_delta_onlyFunction · 0.85

Tested by

no test coverage detected