Skip to content

Replace double quotes in query with single ones#413

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

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

Conversation

@shlee625
Copy link

@shlee625 shlee625 commented Mar 7, 2025

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", line 625, in get_traffic_light_status_for_lidarpc_token_from_db
  for row in execute_many(query, (bytearray.fromhex(token),), log_file):
File /home/shlee625/nuplan-devkit/nuplan/database/nuplan_db/query_session.py", line 21, in execute_many
  cursor.execute(query_text, query_parameters)
sqlite3.OperationalError: no such column: "green" - should this be a string literal in single-quotes?

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

Sign up for free to 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