filter: --query
fails when the .str
accessor is used on a column
#1277
Labels
bug
Something isn't working
--query
fails when the .str
accessor is used on a column
#1277
First reported in a discussion post.
Current Behavior
Given a metadata file with a string column
column
, any query usingcolumn.str
results in an error.This is because
extract_variables
added in 2ead5b3 is unable to properly extractcolumn
as a variable name.Expected behavior
The filter should run successfully.
Possible solutions
extract_variables
to support thecolumn.str
accessor. This isn't trivial since the error message doesn't provide the column name, which is what the function relies on for extracting variables from the query string.extract_variables
and attempt type conversion of all metadata columns to numeric.After realizing that
extract_variables
isn't easy to implement properly, I'm leaning towards option 2.Affected versions
This bug impacts Augur version 22.2.0.
The text was updated successfully, but these errors were encountered: