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

Why does the MySQL connection automatically generate an unusable name and use it as an alias for the query, resulting in an error? #1111

Open
ChafLee opened this issue Jan 14, 2025 · 6 comments
Labels
bug Something isn't working

Comments

@ChafLee
Copy link

ChafLee commented Jan 14, 2025

微信截图_20250114112356
微信截图_20250114112410

@ChafLee ChafLee added the bug Something isn't working label Jan 14, 2025
@wwwy3y3
Copy link
Member

wwwy3y3 commented Jan 14, 2025

Thanks for reporting this! @onlyjackfrost could you take a look ?

@onlyjackfrost
Copy link
Contributor

Please provide the logs in wren-engine, ibis-server & wren-ui

@cnnbevan
Copy link

Using SQLite
model len:0
Batch 1 run: 33 migrations
▲ Next.js 14.2.21

  • Local: http://localhost:3000
  • Network: http://0.0.0.0:3000
    ✓ Starting...
    ✓ Ready in 661ms
    [2025-01-14T01:34:21.750] [INFO] TELEMETRY - Telemetry initialized: e039db54-bb16-4515-ab97-7ba66a8e8333
    using sqlite
    [2025-01-14T01:34:21.773] [INFO] PRQ Background Tracker - Recommend question background tracker started
    [2025-01-14T01:34:21.773] [INFO] AskingService - Background tracker started
    [2025-01-14T01:34:21.773] [INFO] ChartBackgroundTracker - Chart background tracker started
    [2025-01-14T01:34:21.773] [INFO] ChartBackgroundTracker - Chart adjustment background tracker started
    [2025-01-14T01:34:21.773] [INFO] TRQ Background Tracker - Recommend question background tracker started
    [2025-01-14T01:34:21.773] [INFO] PRQ Background Tracker - Recommend question background tracker started
    [2025-01-14T01:34:21.773] [INFO] TRQ Background Tracker - Recommend question background tracker started
    [2025-01-14T01:34:21.778] [INFO] AskingService - Initialization: adding unfininshed breakdown thread responses (total: 0) to background tracker
    [2025-01-14T01:35:45.088] [DEBUG] ProjectService - Creating project...
    [2025-01-14T01:35:45.095] [DEBUG] DataSourceResolver - Project created.
    [2025-01-14T01:35:45.095] [DEBUG] DataSourceResolver - Dashboard init...
    [2025-01-14T01:35:45.103] [DEBUG] DataSourceResolver - Dashboard created.
    [2025-01-14T01:35:45.103] [DEBUG] IbisAdaptor - Getting tables from ibis
    [2025-01-14T01:35:46.349] [DEBUG] DataSourceResolver - Data source tables fetched
    [2025-01-14T01:35:46.377] [DEBUG] IbisAdaptor - Getting tables from ibis
    [2025-01-14T01:37:09.247] [DEBUG] IbisAdaptor - Getting tables from ibis
    [2025-01-14T01:37:11.605] [DEBUG] DeployService - Deploying model, hash: 0e0084ab42ad99d529b14130cf0f214e0e4a1f58
    [2025-01-14T01:37:11.645] [DEBUG] WrenAIAdaptor - Wren AI: Deploying wren AI, hash: 0e0084ab42ad99d529b14130cf0f214e0e4a1f58, deployId: 0e0084ab42ad99d529b14130cf0f214e0e4a1f58
    Persisted queries are enabled and are using an unbounded cache. Your server is vulnerable to denial of service attacks via memory exhaustion. Set cache: "bounded" or persistedQueries: false in your ApolloServer constructor, or see https://go.apollo.dev/s/cache-backends for other alternatives.
    [2025-01-14T01:37:11.663] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-14T01:37:11.734] [DEBUG] IbisAdaptor - Getting constraint from ibis
    [2025-01-14T01:37:12.664] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-14T01:37:14.667] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-14T01:37:17.670] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-14T01:37:21.673] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: FINISHED
    [2025-01-14T01:37:21.673] [DEBUG] WrenAIAdaptor - Wren AI: Deploy wren AI success, hash: 0e0084ab42ad99d529b14130cf0f214e0e4a1f58
    [2025-01-14T01:37:21.694] [INFO] WrenAIAdaptor - Wren AI: Generating recommendation questions
    [2025-01-14T01:37:21.711] [INFO] WrenAIAdaptor - Wren AI: Generating recommendation questions, queryId: 145fdf5b-31bc-4947-875c-e61d86c532dd
    [2025-01-14T01:37:22.647] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T01:37:23.652] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T01:37:24.648] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T01:37:25.655] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T01:37:26.651] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T01:37:27.653] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T01:37:28.656] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T01:37:29.660] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T01:37:30.656] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T01:37:31.656] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T01:37:32.656] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T01:37:33.657] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T01:37:34.658] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T01:37:35.663] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T01:37:36.661] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T01:37:37.661] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T01:37:38.666] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T01:37:39.290] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T01:37:39.291] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T01:37:39.366] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T01:37:39.368] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T01:37:39.378] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T01:37:39.379] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T01:37:39.613] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T01:37:39.615] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T01:37:39.649] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T01:37:39.651] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T01:37:39.652] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T01:37:39.663] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T01:37:39.750] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T01:37:40.125] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T01:37:40.127] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T01:37:40.194] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T01:37:40.378] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T01:37:40.379] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T01:37:40.399] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T01:37:40.400] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T01:37:40.554] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T01:37:40.555] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T01:37:40.556] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T01:37:40.662] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T01:37:40.691] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T01:37:40.693] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T01:37:41.663] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T01:37:42.664] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T01:37:43.320] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T01:37:43.321] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T01:37:43.374] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T01:37:43.667] [DEBUG] PRQ Background Tracker - PRQBT:job 1 have changes, returning question count: 0, updating
    [2025-01-14T01:37:43.684] [DEBUG] PRQ Background Tracker - PRQBT:job 1 is finalized, removing
    [2025-01-14T10:17:54.740] [INFO] WrenAIAdaptor - Wren AI: Generating recommendation questions
    [2025-01-14T10:17:54.758] [INFO] WrenAIAdaptor - Wren AI: Generating recommendation questions, queryId: 98d89379-b156-41cf-a441-d1da7787b5c3
    [2025-01-14T10:17:54.787] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:17:55.784] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:17:56.789] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:17:57.787] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:17:58.787] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:17:59.788] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:18:00.789] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:18:01.794] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:18:02.790] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:18:03.791] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:18:04.792] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:18:05.793] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:18:06.798] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:18:07.796] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:18:08.797] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:18:09.806] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:18:10.799] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:18:11.805] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:18:12.801] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:18:13.803] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:18:13.915] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T10:18:13.916] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T10:18:14.025] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T10:18:14.201] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T10:18:14.203] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T10:18:14.317] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T10:18:14.352] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T10:18:14.353] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T10:18:14.435] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T10:18:14.736] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T10:18:14.738] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T10:18:14.803] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:18:14.922] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T10:18:15.556] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T10:18:15.557] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T10:18:15.606] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T10:18:15.651] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T10:18:15.651] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T10:18:15.739] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T10:18:15.804] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:18:16.056] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T10:18:16.057] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T10:18:16.133] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T10:18:16.809] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:18:17.586] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T10:18:17.587] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T10:18:17.671] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T10:18:17.805] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:18:18.807] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:18:19.807] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:18:20.561] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T10:18:20.563] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T10:18:20.660] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T10:18:20.808] [DEBUG] PRQ Background Tracker - PRQBT:job 1 have changes, returning question count: 0, updating
    [2025-01-14T10:18:20.820] [DEBUG] PRQ Background Tracker - PRQBT:job 1 is finalized, removing
    [2025-01-14T10:20:12.059] [INFO] DataSourceSchemaDetector - Start to detect Data Source Schema changes.
    [2025-01-14T10:20:12.067] [DEBUG] IbisAdaptor - Getting tables from ibis
    [2025-01-14T10:20:13.008] [DEBUG] DataSourceSchemaDetector - Diff Schema: {"deletedColumns":[{"name":"byrsdb.code_assessment_result","columns":[{"name":"id","type":"VARCHAR"},{"name":"lb","type":"VARCHAR"},{"name":"showvalue","type":"VARCHAR"}]}]}
    [2025-01-14T10:20:13.008] [INFO] DataSourceSchemaDetector - Data Source Schema has changed.
    [2025-01-14T10:21:08.485] [INFO] DataSourceSchemaDetector - Start to detect Data Source Schema changes.
    [2025-01-14T10:21:08.492] [DEBUG] IbisAdaptor - Getting tables from ibis
    [2025-01-14T10:21:09.287] [DEBUG] DataSourceSchemaDetector - Diff Schema: {"deletedColumns":[{"name":"byrsdb.code_assessment_result","columns":[{"name":"id","type":"VARCHAR"},{"name":"lb","type":"VARCHAR"},{"name":"showvalue","type":"VARCHAR"}]}]}
    [2025-01-14T10:21:09.287] [INFO] DataSourceSchemaDetector - Data Source Schema has changed.
    [2025-01-14T10:21:49.259] [DEBUG] IbisAdaptor - Getting tables from ibis
    [2025-01-14T10:23:00.962] [DEBUG] IbisAdaptor - Getting tables from ibis
    [2025-01-14T10:23:01.848] [INFO] ModelResolver - Model updated: {"id":4,"projectId":1,"displayName":"byrsdb.code_assessment_result","sourceTableName":"byrsdb.code_assessment_result","referenceName":"byrsdb_code_assessment_result","refSql":null,"cached":0,"refreshTime":null,"properties":"{"schema":"byrsdb","catalog":"","table":"code_assessment_result","description":"考核结果代码表"}","createdAt":"2025-01-14 01:37:11","updatedAt":"2025-01-14 01:37:11"}
    [2025-01-14T10:23:19.675] [DEBUG] IbisAdaptor - Getting tables from ibis
    [2025-01-14T10:23:31.279] [DEBUG] IbisAdaptor - Getting tables from ibis
    [2025-01-14T10:23:32.148] [INFO] ModelResolver - Model updated: {"id":4,"projectId":1,"displayName":"byrsdb.code_assessment_result","sourceTableName":"byrsdb.code_assessment_result","referenceName":"byrsdb_code_assessment_result","refSql":null,"cached":0,"refreshTime":null,"properties":"{"schema":"byrsdb","catalog":"","table":"code_assessment_result","description":"考核结果代码表"}","createdAt":"2025-01-14 01:37:11","updatedAt":"2025-01-14 01:37:11"}
    [2025-01-14T10:23:50.020] [DEBUG] IbisAdaptor - Getting tables from ibis
    [2025-01-14T10:24:03.543] [DEBUG] IbisAdaptor - Getting tables from ibis
    [2025-01-14T10:24:04.375] [INFO] ModelResolver - Model created: {"id":45,"projectId":1,"displayName":"byrsdb.code_assessment_result","sourceTableName":"byrsdb.code_assessment_result","referenceName":"byrsdb_code_assessment_result","refSql":null,"cached":0,"refreshTime":null,"properties":"{"schema":"byrsdb","catalog":"","table":"code_assessment_result","description":"考核结果代码表"}","createdAt":"2025-01-14 10:24:04","updatedAt":"2025-01-14 10:24:04"}
    [2025-01-14T10:24:36.679] [INFO] DataSourceSchemaDetector - Start to detect Data Source Schema changes.
    [2025-01-14T10:24:36.687] [DEBUG] IbisAdaptor - Getting tables from ibis
    [2025-01-14T10:24:37.585] [INFO] DataSourceSchemaDetector - No changes in Data Source Schema.
    [2025-01-14T10:24:37.598] [INFO] DataSourceSchemaDetector - Schema change "deletedTables,deletedColumns,modifiedColumns" resolved successfully.
    [2025-01-14T10:24:58.640] [DEBUG] DeployService - Deploying model, hash: 475506afd511f05ac5eab19a7aef5cedb8d4ee4a
    [2025-01-14T10:24:58.664] [DEBUG] WrenAIAdaptor - Wren AI: Deploying wren AI, hash: 475506afd511f05ac5eab19a7aef5cedb8d4ee4a, deployId: 475506afd511f05ac5eab19a7aef5cedb8d4ee4a
    [2025-01-14T10:24:58.675] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-14T10:24:59.677] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-14T10:25:01.679] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-14T10:25:04.681] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-14T10:25:08.683] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: FINISHED
    [2025-01-14T10:25:08.683] [DEBUG] WrenAIAdaptor - Wren AI: Deploy wren AI success, hash: 475506afd511f05ac5eab19a7aef5cedb8d4ee4a
    [2025-01-14T10:25:08.703] [INFO] WrenAIAdaptor - Wren AI: Generating recommendation questions
    [2025-01-14T10:25:08.718] [INFO] WrenAIAdaptor - Wren AI: Generating recommendation questions, queryId: d32c6d2e-4cc7-4282-9bcf-6fd26ece2eaa
    [2025-01-14T10:25:09.159] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:25:10.159] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:25:11.160] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:25:12.161] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:25:13.161] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:25:14.162] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:25:15.164] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:25:16.164] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:25:17.169] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:25:18.166] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:25:19.166] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:25:20.166] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:25:21.166] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:25:22.170] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:25:23.167] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:25:24.168] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:25:24.830] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T10:25:24.831] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T10:25:24.907] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T10:25:25.172] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:25:26.078] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T10:25:26.079] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T10:25:26.157] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T10:25:26.168] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:25:26.510] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T10:25:26.511] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T10:25:26.586] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T10:25:27.143] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T10:25:27.144] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T10:25:27.168] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:25:27.225] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T10:25:27.385] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T10:25:27.386] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T10:25:27.426] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T10:25:27.593] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T10:25:27.594] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T10:25:27.597] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T10:25:27.598] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T10:25:27.819] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T10:25:27.820] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T10:25:28.170] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:25:28.348] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T10:25:28.349] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T10:25:28.381] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T10:25:28.382] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T10:25:28.437] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T10:25:28.481] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T10:25:29.170] [DEBUG] PRQ Background Tracker - PRQBT:job 1 have changes, returning question count: 0, updating
    [2025-01-14T10:25:29.183] [DEBUG] PRQ Background Tracker - PRQBT:job 1 is finalized, removing
    [2025-01-14T10:49:28.325] [DEBUG] DeployService - Deploying model, hash: 32a8d289569c591adb6f976244e7485a296789e0
    [2025-01-14T10:49:28.345] [DEBUG] WrenAIAdaptor - Wren AI: Deploying wren AI, hash: 32a8d289569c591adb6f976244e7485a296789e0, deployId: 32a8d289569c591adb6f976244e7485a296789e0
    [2025-01-14T10:49:28.356] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-14T10:49:29.359] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-14T10:49:31.361] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-14T10:49:34.364] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-14T10:49:38.367] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-14T10:49:43.373] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-14T10:49:49.375] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-14T10:49:56.485] [INFO] WrenAIAdaptor - Wren AI: Generating recommendation questions
    [2025-01-14T10:49:56.501] [INFO] WrenAIAdaptor - Wren AI: Generating recommendation questions, queryId: 8f45e53c-1ed9-4ed3-bd9c-96ea68c823da
    [2025-01-14T10:49:56.626] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:49:57.627] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:49:58.628] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:49:59.625] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:50:00.626] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:50:01.626] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:50:02.627] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:50:03.633] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:50:04.630] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:50:05.631] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:50:06.632] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:50:07.635] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:50:08.636] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:50:09.637] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:50:10.633] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:50:11.635] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:50:12.636] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:50:13.640] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:50:14.637] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:50:15.642] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:50:16.054] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T10:50:16.055] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T10:50:16.138] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T10:50:16.354] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T10:50:16.355] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T10:50:16.389] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T10:50:16.390] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T10:50:16.449] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T10:50:16.530] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T10:50:16.532] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T10:50:16.601] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T10:50:16.637] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:50:16.676] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T10:50:16.753] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T10:50:16.754] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T10:50:16.772] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T10:50:16.773] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T10:50:16.807] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T10:50:16.808] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T10:50:16.842] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T10:50:16.903] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T10:50:16.905] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T10:50:16.990] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T10:50:16.992] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T10:50:17.041] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T10:50:17.640] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:50:18.644] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:50:19.408] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T10:50:19.409] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T10:50:19.515] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T10:50:19.639] [DEBUG] PRQ Background Tracker - PRQBT:job 1 have changes, returning question count: 0, updating
    [2025-01-14T10:50:19.652] [DEBUG] PRQ Background Tracker - PRQBT:job 1 is finalized, removing
    [2025-01-14T10:50:38.060] [DEBUG] DeployService - Deploying model, hash: 32a8d289569c591adb6f976244e7485a296789e0
    [2025-01-14T10:50:38.081] [DEBUG] WrenAIAdaptor - Wren AI: Deploying wren AI, hash: 32a8d289569c591adb6f976244e7485a296789e0, deployId: 32a8d289569c591adb6f976244e7485a296789e0
    [2025-01-14T10:50:38.091] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-14T10:50:39.098] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-14T10:50:41.099] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-14T10:50:44.102] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-14T10:50:48.108] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: FINISHED
    [2025-01-14T10:50:48.108] [DEBUG] WrenAIAdaptor - Wren AI: Deploy wren AI success, hash: 32a8d289569c591adb6f976244e7485a296789e0
    [2025-01-14T10:50:48.129] [INFO] WrenAIAdaptor - Wren AI: Generating recommendation questions
    [2025-01-14T10:50:48.145] [INFO] WrenAIAdaptor - Wren AI: Generating recommendation questions, queryId: a479cf2e-03b4-4525-a1c5-b16b96c8efac
    [2025-01-14T10:50:48.652] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:50:49.654] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:50:50.658] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:50:51.654] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:50:52.655] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:50:53.661] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:50:54.657] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:50:55.672] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:50:56.672] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:50:57.673] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:50:58.673] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:50:59.674] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:51:00.670] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:51:01.671] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:51:02.670] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:51:03.671] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:51:04.679] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:51:05.673] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:51:06.678] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:51:07.209] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T10:51:07.210] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T10:51:07.294] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T10:51:07.295] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T10:51:07.297] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T10:51:07.464] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T10:51:07.528] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T10:51:07.529] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T10:51:07.570] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T10:51:07.577] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T10:51:07.579] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T10:51:07.658] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T10:51:07.674] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:51:07.726] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T10:51:07.727] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T10:51:07.816] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T10:51:08.319] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T10:51:08.320] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T10:51:08.400] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T10:51:08.494] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T10:51:08.496] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T10:51:08.543] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T10:51:08.679] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:51:08.692] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T10:51:08.694] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T10:51:08.860] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T10:51:09.679] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-14T10:51:10.116] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-14T10:51:10.117] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-14T10:51:10.205] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-14T10:51:10.676] [DEBUG] PRQ Background Tracker - PRQBT:job 1 have changes, returning question count: 0, updating
    [2025-01-14T10:51:10.689] [DEBUG] PRQ Background Tracker - PRQBT:job 1 is finalized, removing
    [2025-01-15T03:36:48.239] [DEBUG] DeployService - Deploying model, hash: b1e171cc3e10e528a17d115952f6ad41eb5b28c5
    [2025-01-15T03:36:48.263] [DEBUG] WrenAIAdaptor - Wren AI: Deploying wren AI, hash: b1e171cc3e10e528a17d115952f6ad41eb5b28c5, deployId: b1e171cc3e10e528a17d115952f6ad41eb5b28c5
    [2025-01-15T03:36:48.278] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-15T03:36:49.284] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-15T03:36:51.289] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-15T03:36:54.292] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-15T03:36:58.293] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-15T03:37:03.296] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: FINISHED
    [2025-01-15T03:37:03.296] [DEBUG] WrenAIAdaptor - Wren AI: Deploy wren AI success, hash: b1e171cc3e10e528a17d115952f6ad41eb5b28c5
    [2025-01-15T03:37:03.334] [INFO] WrenAIAdaptor - Wren AI: Generating recommendation questions
    [2025-01-15T03:37:03.352] [INFO] WrenAIAdaptor - Wren AI: Generating recommendation questions, queryId: c0e708cc-a5d3-4c97-988b-e364ae4e3128
    [2025-01-15T03:37:03.482] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:37:04.481] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:37:05.482] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:37:06.483] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:37:07.485] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:37:08.488] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:37:09.487] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:37:10.488] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:37:11.489] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:37:12.490] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:37:13.491] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:37:14.491] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:37:15.492] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:37:16.493] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:37:17.493] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:37:18.494] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:37:19.499] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:37:20.500] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:37:21.504] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:37:22.273] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T03:37:22.275] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T03:37:22.339] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T03:37:22.500] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:37:22.642] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T03:37:22.644] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T03:37:22.685] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T03:37:23.489] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T03:37:23.491] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T03:37:23.496] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T03:37:23.498] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T03:37:23.507] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:37:23.652] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T03:37:23.653] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T03:37:23.655] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T03:37:23.656] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T03:37:23.811] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T03:37:24.015] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T03:37:24.016] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T03:37:24.107] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T03:37:24.224] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T03:37:24.225] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T03:37:24.315] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T03:37:24.473] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T03:37:24.476] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T03:37:24.504] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:37:24.565] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T03:37:24.996] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T03:37:24.997] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T03:37:25.085] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T03:37:25.504] [DEBUG] PRQ Background Tracker - PRQBT:job 1 have changes, returning question count: 0, updating
    [2025-01-15T03:37:25.519] [DEBUG] PRQ Background Tracker - PRQBT:job 1 is finalized, removing
    [2025-01-15T03:37:26.014] [DEBUG] IbisAdaptor - Getting tables from ibis
    [2025-01-15T03:38:05.250] [DEBUG] IbisAdaptor - Getting tables from ibis
    [2025-01-15T03:38:06.076] [INFO] ModelResolver - Model created: {"id":46,"projectId":1,"displayName":"byrsdb.code_position_category","sourceTableName":"byrsdb.code_position_category","referenceName":"byrsdb_code_position_category","refSql":null,"cached":0,"refreshTime":null,"properties":"{"schema":"byrsdb","catalog":"","table":"code_position_category","description":"专业技术职务分类代码表"}","createdAt":"2025-01-15 03:38:06","updatedAt":"2025-01-15 03:38:06"}
    [2025-01-15T03:46:17.091] [DEBUG] DeployService - Deploying model, hash: abbfdccf3eada0e2fe059f4c19001ba1d969d23f
    [2025-01-15T03:46:17.111] [DEBUG] WrenAIAdaptor - Wren AI: Deploying wren AI, hash: abbfdccf3eada0e2fe059f4c19001ba1d969d23f, deployId: abbfdccf3eada0e2fe059f4c19001ba1d969d23f
    [2025-01-15T03:46:17.125] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-15T03:46:18.127] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-15T03:46:20.133] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-15T03:46:23.135] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-15T03:46:27.141] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-15T03:46:32.143] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: FINISHED
    [2025-01-15T03:46:32.143] [DEBUG] WrenAIAdaptor - Wren AI: Deploy wren AI success, hash: abbfdccf3eada0e2fe059f4c19001ba1d969d23f
    [2025-01-15T03:46:32.164] [INFO] WrenAIAdaptor - Wren AI: Generating recommendation questions
    [2025-01-15T03:46:32.182] [INFO] WrenAIAdaptor - Wren AI: Generating recommendation questions, queryId: 94b011f8-de67-4950-8f03-f09559c84a78
    [2025-01-15T03:46:33.008] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:46:34.008] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:46:35.010] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:46:36.010] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:46:37.011] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:46:38.010] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:46:39.016] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:46:40.017] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:46:41.015] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:46:42.016] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:46:43.017] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:46:44.022] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:46:45.018] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:46:46.020] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:46:47.023] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:46:47.700] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T03:46:47.702] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T03:46:47.793] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T03:46:48.021] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:46:48.700] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T03:46:48.702] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T03:46:48.786] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T03:46:48.958] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T03:46:48.959] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T03:46:49.020] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:46:49.065] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T03:46:49.305] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T03:46:49.307] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T03:46:49.405] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T03:46:50.025] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:46:50.130] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T03:46:50.131] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T03:46:50.210] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T03:46:50.363] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T03:46:50.364] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T03:46:50.461] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T03:46:51.021] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:46:51.471] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T03:46:51.473] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T03:46:51.630] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T03:46:52.020] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:46:53.021] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:46:53.459] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T03:46:53.460] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T03:46:53.551] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T03:46:54.024] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:46:55.021] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:46:56.022] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:46:57.025] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:46:58.024] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:46:59.028] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:47:00.024] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T03:47:00.389] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T03:47:00.391] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T03:47:00.472] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T03:47:01.025] [DEBUG] PRQ Background Tracker - PRQBT:job 1 have changes, returning question count: 0, updating
    [2025-01-15T03:47:01.037] [DEBUG] PRQ Background Tracker - PRQBT:job 1 is finalized, removing
    [2025-01-15T04:28:36.339] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T04:28:36.341] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T04:28:36.431] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T04:28:42.234] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T04:28:42.235] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T04:28:42.320] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T04:28:43.164] [INFO] WrenAIAdaptor - Wren AI: Generating recommendation questions
    [2025-01-15T04:28:43.186] [INFO] WrenAIAdaptor - Wren AI: Generating recommendation questions, queryId: d01849d4-cb49-42a3-8b07-e5d516aeeefd
    [2025-01-15T04:28:50.024] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T04:28:50.026] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T04:28:50.195] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T04:28:51.982] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T04:28:51.985] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T04:28:52.075] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T04:28:53.620] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T04:28:53.622] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T04:28:53.671] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T04:29:52.339] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T04:29:52.389] [DEBUG] IbisAdaptor - Got error when querying ibis: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'byrsdb_code_position_detail AS (SELECT byrsdb_code_position_detail.ref_enum' at line 1") [2025-01-15T04:29:52.390] [ERROR] APOLLO - == original error == [2025-01-15T04:29:52.390] [ERROR] APOLLO - AxiosError: Request failed with status code 500 at settle (file:///app/node_modules/axios/lib/core/settle.js:19:12) at IncomingMessage.handleStreamEnd (file:///app/node_modules/axios/lib/adapters/http.js:599:11) at IncomingMessage.emit (node:events:529:35) at endReadableNT (node:internal/streams/readable:1400:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) at Axios.request (file:///app/node_modules/axios/lib/core/Axios.js:45:41) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async I.query (/app/.next/server/chunks/980.js:1:1761) at async c.ibisQuery (/app/.next/server/chunks/980.js:8:29753) at async c.preview (/app/.next/server/chunks/980.js:8:28930) at async g.previewModelData (/app/.next/server/pages/api/graphql.js:1:75702) [2025-01-15T04:30:53.460] [DEBUG] QueryService - Use ibis adaptor to preview [2025-01-15T04:30:53.498] [DEBUG] IbisAdaptor - Got error when querying ibis: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'byrsdb_code_position_detailAS (SELECTbyrsdb_code_position_detail.ref_enum' at line 1")
    [2025-01-15T04:30:53.498] [ERROR] APOLLO - == original error ==
    [2025-01-15T04:30:53.498] [ERROR] APOLLO - AxiosError: Request failed with status code 500
    at settle (file:///app/node_modules/axios/lib/core/settle.js:19:12)
    at IncomingMessage.handleStreamEnd (file:///app/node_modules/axios/lib/adapters/http.js:599:11)
    at IncomingMessage.emit (node:events:529:35)
    at endReadableNT (node:internal/streams/readable:1400:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
    at Axios.request (file:///app/node_modules/axios/lib/core/Axios.js:45:41)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async I.query (/app/.next/server/chunks/980.js:1:1761)
    at async c.ibisQuery (/app/.next/server/chunks/980.js:8:29753)
    at async c.preview (/app/.next/server/chunks/980.js:8:28930)
    at async g.previewModelData (/app/.next/server/pages/api/graphql.js:1:75702)
    [2025-01-15T04:31:24.859] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T04:31:24.900] [DEBUG] IbisAdaptor - Got error when querying ibis: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'byrsdb_employee_assessment AS (SELECT byrsdb_employee_assessment.ID AS ID' at line 1") [2025-01-15T04:31:24.900] [ERROR] APOLLO - == original error == [2025-01-15T04:31:24.900] [ERROR] APOLLO - AxiosError: Request failed with status code 500 at settle (file:///app/node_modules/axios/lib/core/settle.js:19:12) at IncomingMessage.handleStreamEnd (file:///app/node_modules/axios/lib/adapters/http.js:599:11) at IncomingMessage.emit (node:events:529:35) at endReadableNT (node:internal/streams/readable:1400:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) at Axios.request (file:///app/node_modules/axios/lib/core/Axios.js:45:41) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async I.query (/app/.next/server/chunks/980.js:1:1761) at async c.ibisQuery (/app/.next/server/chunks/980.js:8:29753) at async c.preview (/app/.next/server/chunks/980.js:8:28930) at async g.previewModelData (/app/.next/server/pages/api/graphql.js:1:75702) [2025-01-15T04:32:35.113] [DEBUG] QueryService - Use ibis adaptor to preview [2025-01-15T04:32:35.169] [DEBUG] IbisAdaptor - Got error when querying ibis: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'byrsdb_code_action_type1AS (SELECTbyrsdb_code_action_type1.ref_enumid AS' at line 1") [2025-01-15T04:32:35.169] [ERROR] APOLLO - == original error == [2025-01-15T04:32:35.169] [ERROR] APOLLO - AxiosError: Request failed with status code 500 at settle (file:///app/node_modules/axios/lib/core/settle.js:19:12) at IncomingMessage.handleStreamEnd (file:///app/node_modules/axios/lib/adapters/http.js:599:11) at IncomingMessage.emit (node:events:529:35) at endReadableNT (node:internal/streams/readable:1400:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) at Axios.request (file:///app/node_modules/axios/lib/core/Axios.js:45:41) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async I.query (/app/.next/server/chunks/980.js:1:1761) at async c.ibisQuery (/app/.next/server/chunks/980.js:8:29753) at async c.preview (/app/.next/server/chunks/980.js:8:28930) at async g.previewModelData (/app/.next/server/pages/api/graphql.js:1:75702) [2025-01-15T04:32:55.512] [DEBUG] QueryService - Use ibis adaptor to preview [2025-01-15T04:32:55.551] [DEBUG] IbisAdaptor - Got error when querying ibis: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'byrsdb_code_action_type1AS (SELECTbyrsdb_code_action_type1.ref_enumid AS' at line 1") [2025-01-15T04:32:55.551] [ERROR] APOLLO - == original error == [2025-01-15T04:32:55.551] [ERROR] APOLLO - AxiosError: Request failed with status code 500 at settle (file:///app/node_modules/axios/lib/core/settle.js:19:12) at IncomingMessage.handleStreamEnd (file:///app/node_modules/axios/lib/adapters/http.js:599:11) at IncomingMessage.emit (node:events:529:35) at endReadableNT (node:internal/streams/readable:1400:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) at Axios.request (file:///app/node_modules/axios/lib/core/Axios.js:45:41) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async I.query (/app/.next/server/chunks/980.js:1:1761) at async c.ibisQuery (/app/.next/server/chunks/980.js:8:29753) at async c.preview (/app/.next/server/chunks/980.js:8:28930) at async g.previewModelData (/app/.next/server/pages/api/graphql.js:1:75702) [2025-01-15T04:33:17.992] [DEBUG] QueryService - Use ibis adaptor to preview [2025-01-15T04:33:18.036] [DEBUG] IbisAdaptor - Got error when querying ibis: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'byrsdb_code_org_positionAS (SELECTbyrsdb_code_org_position.code_idASc' at line 1")
    [2025-01-15T04:33:18.036] [ERROR] APOLLO - == original error ==
    [2025-01-15T04:33:18.036] [ERROR] APOLLO - AxiosError: Request failed with status code 500
    at settle (file:///app/node_modules/axios/lib/core/settle.js:19:12)
    at IncomingMessage.handleStreamEnd (file:///app/node_modules/axios/lib/adapters/http.js:599:11)
    at IncomingMessage.emit (node:events:529:35)
    at endReadableNT (node:internal/streams/readable:1400:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
    at Axios.request (file:///app/node_modules/axios/lib/core/Axios.js:45:41)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async I.query (/app/.next/server/chunks/980.js:1:1761)
    at async c.ibisQuery (/app/.next/server/chunks/980.js:8:29753)
    at async c.preview (/app/.next/server/chunks/980.js:8:28930)
    at async g.previewModelData (/app/.next/server/pages/api/graphql.js:1:75702)
    [2025-01-15T04:34:32.584] [INFO] DataSourceSchemaDetector - Start to detect Data Source Schema changes.
    [2025-01-15T04:34:32.597] [DEBUG] IbisAdaptor - Getting tables from ibis
    [2025-01-15T04:34:33.409] [INFO] DataSourceSchemaDetector - No changes in Data Source Schema.
    [2025-01-15T04:34:36.183] [DEBUG] IbisAdaptor - Getting tables from ibis
    [2025-01-15T04:35:43.597] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T04:35:43.641] [DEBUG] IbisAdaptor - Got error when querying ibis: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'byrsdb_code_action_type1 AS (SELECT byrsdb_code_action_type1.ref_enumid AS' at line 1")
    [2025-01-15T04:35:43.642] [ERROR] APOLLO - == original error ==
    [2025-01-15T04:35:43.642] [ERROR] APOLLO - AxiosError: Request failed with status code 500
    at settle (file:///app/node_modules/axios/lib/core/settle.js:19:12)
    at IncomingMessage.handleStreamEnd (file:///app/node_modules/axios/lib/adapters/http.js:599:11)
    at IncomingMessage.emit (node:events:529:35)
    at endReadableNT (node:internal/streams/readable:1400:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
    at Axios.request (file:///app/node_modules/axios/lib/core/Axios.js:45:41)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async I.query (/app/.next/server/chunks/980.js:1:1761)
    at async c.ibisQuery (/app/.next/server/chunks/980.js:8:29753)
    at async c.preview (/app/.next/server/chunks/980.js:8:28930)
    at async g.previewModelData (/app/.next/server/pages/api/graphql.js:1:75702)
    [2025-01-15T04:36:33.480] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T04:36:33.521] [DEBUG] IbisAdaptor - Got error when querying ibis: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'byrsdb_code_action_type1 AS (SELECT byrsdb_code_action_type1.ref_enumid AS' at line 1")
    [2025-01-15T04:36:33.521] [ERROR] APOLLO - == original error ==
    [2025-01-15T04:36:33.521] [ERROR] APOLLO - AxiosError: Request failed with status code 500
    at settle (file:///app/node_modules/axios/lib/core/settle.js:19:12)
    at IncomingMessage.handleStreamEnd (file:///app/node_modules/axios/lib/adapters/http.js:599:11)
    at IncomingMessage.emit (node:events:529:35)
    at endReadableNT (node:internal/streams/readable:1400:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
    at Axios.request (file:///app/node_modules/axios/lib/core/Axios.js:45:41)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async I.query (/app/.next/server/chunks/980.js:1:1761)
    at async c.ibisQuery (/app/.next/server/chunks/980.js:8:29753)
    at async c.preview (/app/.next/server/chunks/980.js:8:28930)
    at async g.previewModelData (/app/.next/server/pages/api/graphql.js:1:75702)
    [2025-01-15T04:38:03.940] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T04:38:03.941] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T04:38:04.018] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T04:38:06.241] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T04:38:06.242] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T04:38:06.349] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T04:38:07.196] [INFO] WrenAIAdaptor - Wren AI: Generating recommendation questions
    [2025-01-15T04:38:07.215] [INFO] WrenAIAdaptor - Wren AI: Generating recommendation questions, queryId: a1402e3b-e8a5-4c37-bbd8-0808b4853cec
    [2025-01-15T04:38:18.453] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T04:38:18.454] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T04:38:18.538] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T04:38:19.687] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T04:38:19.689] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T04:38:19.777] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T04:38:20.109] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T04:38:20.110] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T04:38:20.279] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T04:40:22.315] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T04:40:22.364] [DEBUG] IbisAdaptor - Got error when querying ibis: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'byrsdb_rewards_and_penalties AS (SELECT byrsdb_rewards_and_penalties.ID AS' at line 1")
    [2025-01-15T04:40:22.365] [ERROR] APOLLO - == original error ==
    [2025-01-15T04:40:22.365] [ERROR] APOLLO - AxiosError: Request failed with status code 500
    at settle (file:///app/node_modules/axios/lib/core/settle.js:19:12)
    at IncomingMessage.handleStreamEnd (file:///app/node_modules/axios/lib/adapters/http.js:599:11)
    at IncomingMessage.emit (node:events:529:35)
    at endReadableNT (node:internal/streams/readable:1400:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
    at Axios.request (file:///app/node_modules/axios/lib/core/Axios.js:45:41)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async I.query (/app/.next/server/chunks/980.js:1:1761)
    at async c.ibisQuery (/app/.next/server/chunks/980.js:8:29753)
    at async c.preview (/app/.next/server/chunks/980.js:8:28930)
    at async g.previewModelData (/app/.next/server/pages/api/graphql.js:1:75702)
    Using SQLite
    Already up to date
    ▲ Next.js 14.2.21
  • Local: http://localhost:3000
  • Network: http://0.0.0.0:3000
    ✓ Starting...
    ✓ Ready in 621ms
    [2025-01-15T04:42:24.825] [INFO] TELEMETRY - Telemetry initialized: e039db54-bb16-4515-ab97-7ba66a8e8333
    using sqlite
    [2025-01-15T04:42:24.847] [INFO] PRQ Background Tracker - Recommend question background tracker started
    [2025-01-15T04:42:24.848] [INFO] AskingService - Background tracker started
    [2025-01-15T04:42:24.848] [INFO] ChartBackgroundTracker - Chart background tracker started
    [2025-01-15T04:42:24.848] [INFO] ChartBackgroundTracker - Chart adjustment background tracker started
    [2025-01-15T04:42:24.848] [INFO] TRQ Background Tracker - Recommend question background tracker started
    [2025-01-15T04:42:24.848] [INFO] PRQ Background Tracker - Recommend question background tracker started
    [2025-01-15T04:42:24.848] [INFO] TRQ Background Tracker - Recommend question background tracker started
    [2025-01-15T04:42:24.852] [INFO] AskingService - Initialization: adding unfininshed breakdown thread responses (total: 0) to background tracker
    [2025-01-15T04:42:28.432] [DEBUG] DeployService - Deploying model, hash: 394ea34b20f26499039e112c33b54180fb5945b5
    [2025-01-15T04:42:28.459] [DEBUG] WrenAIAdaptor - Wren AI: Deploying wren AI, hash: 394ea34b20f26499039e112c33b54180fb5945b5, deployId: 394ea34b20f26499039e112c33b54180fb5945b5
    [2025-01-15T04:42:28.474] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-15T04:42:29.476] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-15T04:42:31.478] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-15T04:42:34.482] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-15T04:42:38.512] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: FINISHED
    [2025-01-15T04:42:38.512] [DEBUG] WrenAIAdaptor - Wren AI: Deploy wren AI success, hash: 394ea34b20f26499039e112c33b54180fb5945b5
    [2025-01-15T04:42:38.530] [INFO] WrenAIAdaptor - Wren AI: Generating recommendation questions
    [2025-01-15T04:42:38.551] [INFO] WrenAIAdaptor - Wren AI: Generating recommendation questions, queryId: 0e432263-607d-4290-aac3-4a53b5f2df20
    [2025-01-15T04:42:38.857] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:42:39.859] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:42:40.858] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:42:41.864] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:42:42.859] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:42:43.859] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:42:44.860] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:42:45.860] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:42:46.861] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:42:47.862] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:42:48.862] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:42:49.863] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:42:50.863] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:42:51.867] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:42:52.865] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:42:53.867] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:42:54.868] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:42:55.866] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:42:56.871] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:42:57.867] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:42:58.868] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:42:58.937] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T04:42:58.939] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T04:42:59.309] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T04:42:59.872] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:43:00.871] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:43:01.871] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:43:01.923] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T04:43:01.924] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T04:43:02.070] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T04:43:02.071] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T04:43:02.111] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T04:43:02.211] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T04:43:02.270] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T04:43:02.271] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T04:43:02.381] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T04:43:02.601] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T04:43:02.602] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T04:43:02.696] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T04:43:02.745] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T04:43:02.747] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T04:43:02.872] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:43:02.912] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T04:43:03.873] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:43:04.722] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T04:43:04.723] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T04:43:04.814] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T04:43:04.873] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:43:05.119] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T04:43:05.120] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T04:43:05.207] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T04:43:05.589] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T04:43:05.591] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T04:43:05.655] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T04:43:05.873] [DEBUG] PRQ Background Tracker - PRQBT:job 1 have changes, returning question count: 0, updating
    [2025-01-15T04:43:05.937] [DEBUG] PRQ Background Tracker - PRQBT:job 1 is finalized, removing
    [2025-01-15T04:43:18.202] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T04:43:18.250] [DEBUG] IbisAdaptor - Got error when querying ibis: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'byrsdb_code_education_type AS (SELECT byrsdb_code_education_type.ref_enumid' at line 1") [2025-01-15T04:43:18.250] [ERROR] APOLLO - == original error == [2025-01-15T04:43:18.250] [ERROR] APOLLO - AxiosError: Request failed with status code 500 at settle (file:///app/node_modules/axios/lib/core/settle.js:19:12) at IncomingMessage.handleStreamEnd (file:///app/node_modules/axios/lib/adapters/http.js:599:11) at IncomingMessage.emit (node:events:529:35) at endReadableNT (node:internal/streams/readable:1400:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) at Axios.request (file:///app/node_modules/axios/lib/core/Axios.js:45:41) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async I.query (/app/.next/server/chunks/980.js:1:1761) at async c.ibisQuery (/app/.next/server/chunks/980.js:8:29753) at async c.preview (/app/.next/server/chunks/980.js:8:28930) at async g.previewModelData (/app/.next/server/pages/api/graphql.js:1:75702) [2025-01-15T04:43:45.167] [DEBUG] IbisAdaptor - Getting tables from ibis [2025-01-15T04:44:12.589] [DEBUG] IbisAdaptor - Getting tables from ibis [2025-01-15T04:44:13.447] [INFO] ModelResolver - Model created: {"id":47,"projectId":1,"displayName":"case_1_student_manager.scores","sourceTableName":"case_1_student_manager.scores","referenceName":"case_1_student_manager_scores","refSql":null,"cached":0,"refreshTime":null,"properties":"{\"schema\":\"case_1_student_manager\",\"catalog\":\"\",\"table\":\"scores\",\"description\":\"学生成绩表\"}","createdAt":"2025-01-15 04:44:13","updatedAt":"2025-01-15 04:44:13"} [2025-01-15T04:44:25.529] [DEBUG] QueryService - Use ibis adaptor to preview [2025-01-15T04:44:25.574] [DEBUG] IbisAdaptor - Got error when querying ibis: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'case_1_student_manager_scoresAS (SELECTcase_1_student_manager_scores.stud' at line 1")
    [2025-01-15T04:44:25.574] [ERROR] APOLLO - == original error ==
    [2025-01-15T04:44:25.574] [ERROR] APOLLO - AxiosError: Request failed with status code 500
    at settle (file:///app/node_modules/axios/lib/core/settle.js:19:12)
    at IncomingMessage.handleStreamEnd (file:///app/node_modules/axios/lib/adapters/http.js:599:11)
    at IncomingMessage.emit (node:events:529:35)
    at endReadableNT (node:internal/streams/readable:1400:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
    at Axios.request (file:///app/node_modules/axios/lib/core/Axios.js:45:41)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async I.query (/app/.next/server/chunks/980.js:1:1761)
    at async c.ibisQuery (/app/.next/server/chunks/980.js:8:29753)
    at async c.preview (/app/.next/server/chunks/980.js:8:28930)
    at async g.previewModelData (/app/.next/server/pages/api/graphql.js:1:75702)
    [2025-01-15T04:44:45.102] [DEBUG] IbisAdaptor - Getting tables from ibis
    [2025-01-15T04:47:05.747] [INFO] WrenAIAdaptor - Wren AI: Generating recommendation questions
    [2025-01-15T04:47:05.766] [INFO] WrenAIAdaptor - Wren AI: Generating recommendation questions, queryId: 3cdb1f5c-b721-417a-89c9-9c226802d679
    [2025-01-15T04:47:06.104] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:47:07.106] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:47:08.105] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:47:09.105] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:47:10.107] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:47:11.109] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:47:12.111] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:47:13.112] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:47:14.113] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:47:15.115] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:47:16.110] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:47:17.114] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:47:18.112] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:47:19.113] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:47:20.117] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:47:21.115] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:47:22.129] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:47:23.121] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:47:24.122] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:47:25.118] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:47:26.037] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T04:47:26.038] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T04:47:26.119] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:47:26.143] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T04:47:26.680] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T04:47:26.681] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T04:47:26.692] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T04:47:26.693] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T04:47:26.916] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T04:47:26.918] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T04:47:27.088] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T04:47:27.089] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T04:47:27.119] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:47:27.138] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T04:47:27.447] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T04:47:27.449] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T04:47:27.493] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T04:47:28.118] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:47:28.165] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T04:47:28.166] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T04:47:28.273] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T04:47:28.937] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T04:47:28.938] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T04:47:29.054] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T04:47:29.121] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:47:30.124] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:47:30.291] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T04:47:30.292] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T04:47:30.389] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T04:47:31.120] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:47:32.125] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-15T04:47:32.620] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T04:47:32.621] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-15T04:47:32.719] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-15T04:47:33.125] [DEBUG] PRQ Background Tracker - PRQBT:job 1 have changes, returning question count: 0, updating
    [2025-01-15T04:47:33.138] [DEBUG] PRQ Background Tracker - PRQBT:job 1 is finalized, removing
    [2025-01-15T04:49:35.981] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-15T04:49:36.025] [DEBUG] IbisAdaptor - Got error when querying ibis: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'byrsdb_code_professional_title AS (SELECT byrsdb_code_professional_title.`re' at line 1")
    [2025-01-15T04:49:36.026] [ERROR] APOLLO - == original error ==
    [2025-01-15T04:49:36.026] [ERROR] APOLLO - AxiosError: Request failed with status code 500
    at settle (file:///app/node_modules/axios/lib/core/settle.js:19:12)
    at IncomingMessage.handleStreamEnd (file:///app/node_modules/axios/lib/adapters/http.js:599:11)
    at IncomingMessage.emit (node:events:529:35)
    at endReadableNT (node:internal/streams/readable:1400:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
    at Axios.request (file:///app/node_modules/axios/lib/core/Axios.js:45:41)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async I.query (/app/.next/server/chunks/980.js:1:1761)
    at async c.ibisQuery (/app/.next/server/chunks/980.js:8:29753)
    at async c.preview (/app/.next/server/chunks/980.js:8:28930)
    at async g.previewModelData (/app/.next/server/pages/api/graphql.js:1:75702)
    Using SQLite
    Already up to date
    ▲ Next.js 14.2.21
  • Local: http://localhost:3000
  • Network: http://0.0.0.0:3000
    ✓ Starting...
    ✓ Ready in 518ms
    [2025-01-16T01:49:32.013] [INFO] TELEMETRY - Telemetry initialized: e039db54-bb16-4515-ab97-7ba66a8e8333
    using sqlite
    [2025-01-16T01:49:32.038] [INFO] PRQ Background Tracker - Recommend question background tracker started
    [2025-01-16T01:49:32.039] [INFO] AskingService - Background tracker started
    [2025-01-16T01:49:32.039] [INFO] ChartBackgroundTracker - Chart background tracker started
    [2025-01-16T01:49:32.039] [INFO] ChartBackgroundTracker - Chart adjustment background tracker started
    [2025-01-16T01:49:32.039] [INFO] TRQ Background Tracker - Recommend question background tracker started
    [2025-01-16T01:49:32.039] [INFO] PRQ Background Tracker - Recommend question background tracker started
    [2025-01-16T01:49:32.039] [INFO] TRQ Background Tracker - Recommend question background tracker started
    [2025-01-16T01:49:32.044] [INFO] AskingService - Initialization: adding unfininshed breakdown thread responses (total: 0) to background tracker
    [2025-01-16T01:49:32.128] [DEBUG] DeployService - Deploying model, hash: 394ea34b20f26499039e112c33b54180fb5945b5
    [2025-01-16T01:49:32.155] [DEBUG] WrenAIAdaptor - Wren AI: Deploying wren AI, hash: 394ea34b20f26499039e112c33b54180fb5945b5, deployId: 394ea34b20f26499039e112c33b54180fb5945b5
    [2025-01-16T01:49:32.169] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-16T01:49:33.172] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-16T01:49:35.176] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-16T01:49:38.179] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: INDEXING
    [2025-01-16T01:49:42.181] [DEBUG] WrenAIAdaptor - Wren AI: Deploy status: FINISHED
    [2025-01-16T01:49:42.181] [DEBUG] WrenAIAdaptor - Wren AI: Deploy wren AI success, hash: 394ea34b20f26499039e112c33b54180fb5945b5
    [2025-01-16T01:49:42.202] [INFO] WrenAIAdaptor - Wren AI: Generating recommendation questions
    [2025-01-16T01:49:42.222] [INFO] WrenAIAdaptor - Wren AI: Generating recommendation questions, queryId: ce858a71-3565-4481-9c86-b7bffd518702
    [2025-01-16T01:49:43.051] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:49:44.051] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:49:45.052] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:49:46.055] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    Persisted queries are enabled and are using an unbounded cache. Your server is vulnerable to denial of service attacks via memory exhaustion. Set cache: "bounded" or persistedQueries: false in your ApolloServer constructor, or see https://go.apollo.dev/s/cache-backends for other alternatives.
    Persisted queries are enabled and are using an unbounded cache. Your server is vulnerable to denial of service attacks via memory exhaustion. Set cache: "bounded" or persistedQueries: false in your ApolloServer constructor, or see https://go.apollo.dev/s/cache-backends for other alternatives.
    [2025-01-16T01:49:47.055] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:49:48.055] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:49:49.056] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:49:50.056] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:49:51.062] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:49:52.059] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:49:53.059] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:49:54.059] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:49:55.061] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:49:56.061] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:49:57.062] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:49:58.062] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:49:59.063] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:50:00.064] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:50:01.065] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:50:02.066] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:50:03.066] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:50:04.068] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:50:05.070] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:50:06.073] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:50:07.071] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:50:08.073] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:50:09.073] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:50:10.075] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:50:11.074] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:50:12.075] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:50:12.917] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-16T01:50:13.075] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:50:13.160] [DEBUG] IbisAdaptor - Got error when querying ibis: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'byrsdb_employee_resume AS (SELECT byrsdb_employee_resume.ID AS ID, `byrs' at line 1")
    [2025-01-16T01:50:13.161] [ERROR] APOLLO - == original error ==
    [2025-01-16T01:50:13.161] [ERROR] APOLLO - AxiosError: Request failed with status code 500
    at settle (file:///app/node_modules/axios/lib/core/settle.js:19:12)
    at IncomingMessage.handleStreamEnd (file:///app/node_modules/axios/lib/adapters/http.js:599:11)
    at IncomingMessage.emit (node:events:529:35)
    at endReadableNT (node:internal/streams/readable:1400:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
    at Axios.request (file:///app/node_modules/axios/lib/core/Axios.js:45:41)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async I.query (/app/.next/server/chunks/980.js:1:1761)
    at async c.ibisQuery (/app/.next/server/chunks/980.js:8:29753)
    at async c.preview (/app/.next/server/chunks/980.js:8:28930)
    at async g.previewModelData (/app/.next/server/pages/api/graphql.js:1:75702)
    [2025-01-16T01:50:14.080] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:50:14.205] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-16T01:50:14.207] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-16T01:50:14.267] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-16T01:50:14.763] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-16T01:50:14.764] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-16T01:50:14.937] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-16T01:50:15.075] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:50:15.372] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-16T01:50:15.374] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-16T01:50:15.394] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-16T01:50:15.395] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-16T01:50:15.515] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-16T01:50:15.516] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-16T01:50:15.692] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-16T01:50:15.694] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-16T01:50:15.790] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-16T01:50:16.078] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:50:16.095] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-16T01:50:16.096] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-16T01:50:16.206] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-16T01:50:16.973] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-16T01:50:16.974] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-16T01:50:17.075] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:50:17.085] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-16T01:50:18.075] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:50:19.076] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:50:20.076] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:50:20.389] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-16T01:50:20.390] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-16T01:50:20.553] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-16T01:50:21.081] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:50:22.078] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:50:23.082] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:50:24.083] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:50:25.080] [DEBUG] PRQ Background Tracker - PRQBT:job 1 status not changed, returning question count: 0
    [2025-01-16T01:50:25.132] [DEBUG] QueryService - Use ibis adaptor to preview
    [2025-01-16T01:50:25.133] [DEBUG] IbisAdaptor - Dry run sql from ibis with body:
    [2025-01-16T01:50:25.262] [INFO] IbisAdaptor - Got error when dry running ibis
    [2025-01-16T01:50:26.085] [DEBUG] PRQ Background Tracker - PRQBT:job 1 have changes, returning question count: 0, updating
    [2025-01-16T01:50:26.098] [DEBUG] PRQ Background Tracker - PRQBT:job 1 is finalized, removing

@cnnbevan
Copy link

2025-01-16 01:50:25.260 | [b9319fcb-4bda-4216-9f4c-4adcd870ef22] | ERROR | main.custom_http_error_handler:77 - Request failed
Traceback (most recent call last):
File "/app/model/connector.py", line 41, in dry_run
self._connector.dry_run(sql)
File "/app/model/connector.py", line 55, in dry_run
self.connection.sql(sql)
File "/app/.venv/lib/python3.11/site-packages/ibis/backends/sql/init.py", line 176, in sql
schema = self._get_schema_using_query(query)
File "/app/.venv/lib/python3.11/site-packages/ibis/backends/mysql/init.py", line 201, in _get_schema_using_query
cur.execute(
File "/app/.venv/lib/python3.11/site-packages/pymysql/cursors.py", line 153, in execute
result = self._query(query)
File "/app/.venv/lib/python3.11/site-packages/pymysql/cursors.py", line 322, in _query
conn.query(q)
File "/app/.venv/lib/python3.11/site-packages/pymysql/connections.py", line 563, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File "/app/.venv/lib/python3.11/site-packages/pymysql/connections.py", line 825, in _read_query_result
result.read()
File "/app/.venv/lib/python3.11/site-packages/pymysql/connections.py", line 1199, in read
first_packet = self.connection._read_packet()
File "/app/.venv/lib/python3.11/site-packages/pymysql/connections.py", line 775, in _read_packet
packet.raise_for_error()
File "/app/.venv/lib/python3.11/site-packages/pymysql/protocol.py", line 219, in raise_for_error
err.raise_mysql_exception(self._data)
File "/app/.venv/lib/python3.11/site-packages/pymysql/err.py", line 150, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'byrsdb_code_position_rank AS (SELECT byrsdb_code_position_rank.ref_enumid ' at line 1")
During handling of the above exception, another exception occurred:
Traceback (most recent call last):

File "/app/.venv/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "/app/.venv/lib/python3.11/site-packages/starlette/routing.py", line 73, in app
response = await f(request)
File "/app/.venv/lib/python3.11/site-packages/fastapi/routing.py", line 301, in app
raw_response = await run_endpoint_function(
File "/app/.venv/lib/python3.11/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
return await dependant.call(**values)
File "/app/routers/v2/connector.py", line 45, in query
connector.dry_run(rewritten_sql)
File "/app/model/connector.py", line 43, in dry_run
raise QueryDryRunError(f"Exception: {type(e)}, message: {e!s}")
app.model.connector.QueryDryRunError: Exception: <class 'pymysql.err.ProgrammingError'>, message: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'byrsdb_code_position_rank AS (SELECT byrsdb_code_position_rank.ref_enumid ' at line 1")
2025-01-16 01:50:25.260 | [b9319fcb-4bda-4216-9f4c-4adcd870ef22] | INFO | init.dispatch:29 - Request ended
INFO 172.22.0.6:36654 - "POST /v2/connector/mysql/query?dryRun=true
HTTP/1.1" 422

@cnnbevan
Copy link

“byrsdb_” don't add the prefix.

@cnnbevan
Copy link

@onlyjackfrost thx

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

No branches or pull requests

4 participants