Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SOS python select on values with quotes #43

Open
bschwal opened this issue May 3, 2021 · 0 comments
Open

SOS python select on values with quotes #43

bschwal opened this issue May 3, 2021 · 0 comments

Comments

@bschwal
Copy link
Collaborator

bschwal commented May 3, 2021

I was storing data as a char_array that had quotation marks around some values (i.e. "my_value").
When I used sos_cmd to select this data using sos_cmd -C my_path -qS schema -X index -F value:eq:'"my_value"' (note the extra quotations around my_value) that worked just fine.
When I tried to use a select statement in python with a where command ([value, Sos.Cond_EQ, '"my_value"']) this did not return any data.
When I removed the quotation marks from the data before SOS ingest, the unaltered python code did return data.

TLDR: SosDataSource.select is not filtering data correctly when there are quotation marks around some value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant