superduper-io / superduper

Superduper: Integrate AI models and machine learning workflows with your database to implement custom AI applications, without moving your data. Including streaming inference, scalable model hosting, training and vector search.

Home Page:https://superduper.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[PRE-RELEASE-0.4] [BUG] The query parser is not compatible with the `.` symbol.

jieguangzhou opened this issue · comments

Contact Details [Optional]

No response

System Information

main

What happened?

The parameter was split during decoding using the “.” symbol.

Steps to reproduce

query = {'query': 'data_view.predict(condition={"uri": "123.PDF"})',
 '_variables': {'condition': '<value-0>'},
 'documents': [],
 '_builds': {},
 '_files': {},
 '_path': 'superduper.backends.base.query.parse_query'}
from superduper import Document

Document.decode(query).parts
>> ['predict(condition={"uri": "123', 'PDF"})']

Relevant log output

No response