georgia-tech-db / evadb

Database system for AI-powered apps
https://evadb.ai/docs
Apache License 2.0
2.63k stars 262 forks source link

TypeError: tuple indices must be integers or slices, not str #1292

Open fwang356 opened 1 year ago

fwang356 commented 1 year ago

Search before asking

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?

github-actions[bot] commented 1 year ago

👋 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.