nuplan-devkit icon indicating copy to clipboard operation
nuplan-devkit copied to clipboard

Replace double quotes in query with single ones

Open shlee625 opened this issue 10 months ago • 0 comments

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.

shlee625 avatar Mar 07 '25 03:03 shlee625