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

UDF in where clause #124

Open
integerx opened this issue Aug 27, 2015 · 3 comments
Open

UDF in where clause #124

integerx opened this issue Aug 27, 2015 · 3 comments
Labels
docbug Issue needs to be documented or is a documentation issue Shard-Query

Comments

@integerx
Copy link

executing:

echo "select smiles from products_structure_query where match_substructure(screen, molecule, 'CCC');" | sudo php run_query --ini=bootstrap.ini

results in:

ERRORS RETURNED BY OPERATION:
Array
(
[0] => While getting coordinator columns: 1054Unknown column 'screenmolecule' in 'where clause'
[1] => [message:Failed to execute query on node:1054Unknown column 'screenmolecule' in 'where clause'] [node:shard1] [arc:0] [insert_id:0]
...
)

Doesn't seem to see a comma between arguments in the function call.

Let me know what further info you need.
Thank you.

@greenlion
Copy link
Owner

I think you will have to add the function to the SQL parser so that it is recognized. Right now I am on disability and not working, so I can't help with the changes myself.

@greenlion
Copy link
Owner

I will need to take a look at this. Parser modification may not actually be required for UDF in the WHERE clause. There might just be a bug here.

@greenlion
Copy link
Owner

Indeed the arbitrary UDF function needs to be manually added to the parser. Should be noted in the documentation.

@greenlion greenlion added the docbug Issue needs to be documented or is a documentation issue label Jun 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docbug Issue needs to be documented or is a documentation issue Shard-Query
Projects
None yet
Development

No branches or pull requests

2 participants