TypeError: tuple indices must be integers or slices, not str
fwang356 opened this issue ยท 1 comments
fwang356 commented
Search before asking
- I have searched the EvaDB issues and found no similar bug report.
Bug
I'm storing a numpy array in a PostgreSQL table using pgvector. In line 95 here I am getting the following error:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/evadb/storage/native_storage_engine.py", line 195, in read
data_batch.append(_deserialize_sql_row(row, ordered_columns))
File "/usr/local/lib/python3.10/dist-packages/evadb/storage/native_storage_engine.py", line 95, in _deserialize_sql_row
if col.type == ColumnType.NDARRAY and isinstance(sql_row[col.name], bytes):
File "lib/sqlalchemy/cyextension/resultproxy.pyx", line 48, in sqlalchemy.cyextension.resultproxy.BaseRow.__getitem__
TypeError: tuple indices must be integers or slices, not str
Environment
Google Colab
Are you willing to submit a PR?
- Yes I'd like to help by submitting a PR!
github-actions commented
๐ Hello @fwang356, thanks for your interest in EVA DB ๐ Please visit our ๐ฎ Tutorials to get started, where you can find quickstart guides for simple tasks like Image Classification all the way to more interesting tasks like Emotion Analysis.
If this is a ๐ Bug Report, please provide a minimum reproducible example to help us debug it.
If this is a โ Question, please provide as much information as possible, including dataset examples and query results.