Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Error if selecting column name is 'status' #44

Open
StpMax opened this issue Dec 2, 2021 · 2 comments
Open

Error if selecting column name is 'status' #44

StpMax opened this issue Dec 2, 2021 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@StpMax
Copy link
Contributor

StpMax commented Dec 2, 2021

query:

result_df = dfsql.sql_query(
                    'select name, status from predictors',
                    ds_kwargs={'case_sensitive': False},
                    reduce_output=False,
                    predictors=predictors_df
                )

error:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/maxs/dev/mdb/venv38/sources/dfsql/dfsql/__init__.py", line 30, in sql_query
    result = ds.query(sql, reduce_output=reduce_output)
  File "/home/maxs/dev/mdb/venv38/sources/dfsql/dfsql/data_sources/base_data_source.py", line 171, in query
    query = parse_sql(sql)
  File "/home/maxs/dev/mdb/venv38/sources/mindsdb_sql/mindsdb_sql/__init__.py", line 25, in parse_sql
    ast = parser.parse(tokens)
  File "/home/maxs/dev/mdb/venv38/lib/python3.8/site-packages/sly-0.4-py3.8.egg/sly/yacc.py", line 2119, in parse
    tok = self.error(errtoken)
  File "/home/maxs/dev/mdb/venv38/sources/mindsdb_sql/mindsdb_sql/parser/parser.py", line 544, in error
    raise ParsingException(f"Syntax error at token {p.type}: \"{p.value}\"")
mindsdb_sql.exceptions.ParsingException: Syntax error at token STATUS: "status"
@StpMax StpMax added the bug Something isn't working label Dec 2, 2021
@20BCS4643
Copy link

Can I have a table? In which are you doing the selective status operations?

@tomhuds
Copy link

tomhuds commented May 25, 2023

@StpMax can we archive this project? or close issue?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants