AttributeError: Neither 'BinaryExpression' object nor 'Comparator' object has an attribute 'astext'
#188
Labels
AttributeError: Neither 'BinaryExpression' object nor 'Comparator' object has an attribute 'astext'
#188
Problem
When deriving a CrateDB adapter for LangChain from langchain-postgres, we are observing this error when invoking a test case.
Solution
"astext" is part of the psycopg2 variant of JSON, use it like this:
if you're using plain JSON, you should use cast:
References
The text was updated successfully, but these errors were encountered: