@@ -29,8 +29,7 @@ def basic_example():
2929 table = filter (
3030 table ,
3131 expression = scalar_function (
32- "functions_comparison.yaml" ,
33- "lt" ,
32+ "functions_comparison.yaml:lt" ,
3433 expressions = [column ("id" ), literal (100 , i64 ())],
3534 ),
3635 )
@@ -168,8 +167,7 @@ def advanced_example():
168167 table = filter (
169168 table ,
170169 expression = scalar_function (
171- "functions_comparison.yaml" ,
172- "lt" ,
170+ "functions_comparison.yaml:lt" ,
173171 expressions = [column ("id" ), literal (100 , i64 ())],
174172 ),
175173 )
@@ -200,8 +198,7 @@ def advanced_example():
200198 adult_users = filter (
201199 users ,
202200 expression = scalar_function (
203- "functions_comparison.yaml" ,
204- "gt" ,
201+ "functions_comparison.yaml:gt" ,
205202 expressions = [column ("age" ), literal (25 , i64 ())],
206203 ),
207204 )
@@ -216,8 +213,7 @@ def advanced_example():
216213 column ("salary" ),
217214 # Add a calculated field (this would show function options if available)
218215 scalar_function (
219- "functions_arithmetic.yaml" ,
220- "multiply" ,
216+ "functions_arithmetic.yaml:multiply" ,
221217 expressions = [column ("salary" ), literal (1.1 , fp64 ())],
222218 alias = "salary_with_bonus" ,
223219 ),
@@ -248,8 +244,7 @@ def advanced_example():
248244 high_value_orders = filter (
249245 orders ,
250246 expression = scalar_function (
251- "functions_comparison.yaml" ,
252- "gt" ,
247+ "functions_comparison.yaml:gt" ,
253248 expressions = [column ("amount" ), literal (50.0 , fp64 ())],
254249 ),
255250 )
@@ -280,17 +275,14 @@ def expression_only_example():
280275 print ("=== Expression-Only Example ===" )
281276 # Show complex expression structure
282277 complex_expr = scalar_function (
283- "functions_arithmetic.yaml" ,
284- "multiply" ,
278+ "functions_arithmetic.yaml:multiply" ,
285279 expressions = [
286280 scalar_function (
287- "functions_arithmetic.yaml" ,
288- "add" ,
281+ "functions_arithmetic.yaml:add" ,
289282 expressions = [
290283 column ("base_salary" ),
291284 scalar_function (
292- "functions_arithmetic.yaml" ,
293- "multiply" ,
285+ "functions_arithmetic.yaml:multiply" ,
294286 expressions = [
295287 column ("base_salary" ),
296288 literal (0.15 , fp64 ()), # 15% bonus
@@ -299,8 +291,7 @@ def expression_only_example():
299291 ],
300292 ),
301293 scalar_function (
302- "functions_arithmetic.yaml" ,
303- "subtract" ,
294+ "functions_arithmetic.yaml:subtract" ,
304295 expressions = [
305296 literal (1.0 , fp64 ()),
306297 literal (0.25 , fp64 ()), # 25% tax rate
0 commit comments