Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: create table into a native storage using select query fails with following error #1221

Closed
1 of 2 tasks
gaurav274 opened this issue Sep 26, 2023 · 1 comment
Closed
1 of 2 tasks
Assignees
Labels
Bug 🐞 EVA is not working as expected
Milestone

Comments

@gaurav274
Copy link
Member

Search before asking

  • I have searched the EvaDB issues and found no similar bug report.

Bug

09-26-2023 02:22:43 ERROR [native_storage_engine:native_storage_engine.py:read:0201] Failed to read the table evadb_StargazerList in data source sqlite_data with exception tuple indices must be integers or slices, not str
Traceback (most recent call last):
  File "/home/gkakkar7/VAST/evadb/evadb_310/lib/python3.10/site-packages/evadb/storage/native_storage_engine.py", line 193, in read
    data_batch.append(_deserialize_sql_row(row, ordered_columns))
  File "/home/gkakkar7/VAST/evadb/evadb_310/lib/python3.10/site-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
09-26-2023 02:22:43 ERROR [plan_executor:plan_executor.py:execute_plan:0186] Failed to read the table evadb_StargazerList in data source sqlite_data with exception tuple indices must be integers or slices, not str
Traceback (most recent call last):
  File "/home/gkakkar7/VAST/evadb/evadb_310/lib/python3.10/site-packages/evadb/storage/native_storage_engine.py", line 193, in read
    data_batch.append(_deserialize_sql_row(row, ordered_columns))
  File "/home/gkakkar7/VAST/evadb/evadb_310/lib/python3.10/site-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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/gkakkar7/VAST/evadb/evadb_310/lib/python3.10/site-packages/evadb/executor/plan_executor.py", line 182, in execute_plan
    yield from output
  File "/home/gkakkar7/VAST/evadb/evadb_310/lib/python3.10/site-packages/evadb/executor/project_executor.py", line 44, in exec
    for batch in child_executor.exec(**kwargs):
  File "/home/gkakkar7/VAST/evadb/evadb_310/lib/python3.10/site-packages/evadb/executor/seq_scan_executor.py", line 40, in exec
    for batch in child_executor.exec(**kwargs):
  File "/home/gkakkar7/VAST/evadb/evadb_310/lib/python3.10/site-packages/evadb/storage/native_storage_engine.py", line 202, in read
    raise Exception(err_msg)
Exception: Failed to read the table evadb_StargazerList in data source sqlite_data with exception tuple indices must be integers or slices, not str
❗️ EvaDB Session ended with an error: Failed to read the table evadb_StargazerList in data source sqlite_data with exception tuple indices must be integers or slices, not str

Environment

No response

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!
@gaurav274 gaurav274 self-assigned this Sep 26, 2023
@gaurav274 gaurav274 added Bug 🐞 EVA is not working as expected Data Sources Features/Bugs related to Data Sources User Experience labels Sep 26, 2023
@gaurav274
Copy link
Member Author

The bug was incorrectly reported. Cannot be reproduced!

@xzdandy xzdandy removed User Experience Data Sources Features/Bugs related to Data Sources labels Sep 29, 2023
@xzdandy xzdandy added this to the v0.3.7 milestone Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐞 EVA is not working as expected
Projects
Archived in project
Development

No branches or pull requests

2 participants