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
Bug Description
I want to query one of my vertexes, but the fields on it are floats. Thus, TigerGraph suggests to do abs(x - value) < epsilon.
However, trying to do this throws the following exception.
('parsing filter failed', '609')
To Reproduce
Steps to reproduce the behavior:
Create a new edge which all its parameters are float values.
Create a function like this in python:
def __get_vertex_id_if_exists(
self, vertex_type: str, where: str
) -> Optional[str]:
try:
result = self.__connection.getVertices(
vertexType=vertex_type, where=where, limit=1
)
if len(result) == 0:
return None
result_dict = result[0]
if not isinstance(result_dict, dict):
return None
return result_dict[VERTEX_ID_KEY]
except TigerGraphException as e:
raise e
except Exception as e:
print("type is:", e.__class__.__name__)
raise e
Which doesn't gives an error, but I've been unable to verify if that actually works. Definitely more details about how to use it will be good. Docs just say to use a comma separated string.
The text was updated successfully, but these errors were encountered:
Jatapiaro
changed the title
Trying to use abs in getVertices gives ('parsing filter failed', '609') exception
Trying to use abs in getVertices gives ('parsing filter failed', '609') exception
Apr 15, 2024
Jatapiaro
changed the title
Trying to use abs in getVertices gives ('parsing filter failed', '609') exception
Trying to use abs in getVertices gives ('parsing filter failed', '609') exception
Apr 15, 2024
Jatapiaro
changed the title
Trying to use abs in getVertices gives ('parsing filter failed', '609') exception
Trying to use abs in getVertices gives ('parsing filter failed', '609') exception
Apr 15, 2024
Bug Description
I want to query one of my vertexes, but the fields on it are
floats
. Thus, TigerGraph suggests to doabs(x - value) < epsilon
.However, trying to do this throws the following exception.
To Reproduce
Steps to reproduce the behavior:
Then try to call it using:
Expected behavior
I expect to get an item that matches my query.
Additional context
The documentation doesn't show clear examples on how to use the where syntax. So far I tried this in other places:
Which doesn't gives an error, but I've been unable to verify if that actually works. Definitely more details about how to use it will be good. Docs just say to use a comma separated string.
The text was updated successfully, but these errors were encountered: