Commit 493d572
committed
fix: correct inverted default_value logic in _construct_random_input
When singleton=True, the fallback should be scalar None, not [None].
When singleton=False, the fallback should be [None], not None.
The condition was inverted, causing incorrect UDF schema inference
for feature types not present in sample_values.
Fixes #6008
Signed-off-by: Br1an67 <932039080@qq.com>1 parent 4dad460 commit 493d572
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1011 | 1011 | | |
1012 | 1012 | | |
1013 | 1013 | | |
1014 | | - | |
| 1014 | + | |
1015 | 1015 | | |
1016 | 1016 | | |
1017 | 1017 | | |
| |||
0 commit comments