Skip to content

Replace double quotes in query with single ones - #413

Open
shlee625 wants to merge 1 commit into
motional:masterfrom
shlee625:db-query-single-quotes
Open

Replace double quotes in query with single ones#413
shlee625 wants to merge 1 commit into
motional:masterfrom
shlee625:db-query-single-quotes

Conversation

@shlee625

Copy link
Copy Markdown

When trying to generate features from the dataset, an error occurs as below:

File"/home/shlee625/nuplan-devkit/nuplan/database/nuplan_db/nuplan_scenario_queries.py", line625, inget_traffic_light_status_for_lidarpc_token_from_dbforrowinexecute_many(query, (bytearray.fromhex(token),), log_file):
File/home/shlee625/nuplan-devkit/nuplan/database/nuplan_db/query_session.py", line21, inexecute_manycursor.execute(query_text, query_parameters)
sqlite3.OperationalError: nosuchcolumn: "green"-shouldthisbeastringliteralinsingle-quotes?

Indeed, the query includes double quotes, which should be single quotes (code). When replacing them, the error has been resolved.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@shlee625