You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the field_update step, the pass_row parameter is set to False by default, except for formula which sets it to True before calling the table.convert() from petl. We should allow this parameter to be set to True for functions as well for the same reasons that formula sets it to True.
The text was updated successfully, but these errors were encountered:
ebAbhay
added a commit
to Engine-B/frictionless-py
that referenced
this issue
Jan 22, 2025
…ld_update
# Description
As described in frictionlessdata#1728, pass_row parameter is now added as an editable parameter for the field_update step. This allows us to use row data inside custom python function.
# Tests
Ensured the newly added unit test ` test_step_field_update_with_function_and_pass_row_true` runs without fail and also that all the previous test cases run and pass too.
# Description
As described in #1728, pass_row parameter is now added as an editable
parameter for the field_update step. This allows us to use row data
inside custom python function.
The default value of the parameter remains False so that any existing
uses of this functionality will not be affected.
# Tests
Ensured the newly added unit test `test_step_field_update_with_function_and_pass_row_true` runs without
fail and also that all the previous test cases run and pass too.
- fixes#1728
---------
Co-authored-by: Pierre Camilleri <[email protected]>
Summary
In the
field_update
step, thepass_row
parameter is set toFalse
by default, except forformula
which sets it toTrue
before calling thetable.convert()
from petl. We should allow this parameter to be set toTrue
forfunctions
as well for the same reasons thatformula
sets it toTrue
.The text was updated successfully, but these errors were encountered: