r/SQL • • 4h ago

MySQL Anyone using Apache doris have you faced this issue?

I am doing an insert query in apache doris and I am getting the following error:

SQL Error [1105] [HY000]: Flags = ' ,'

Please let me know if you have a solution for this one.

4 Upvotes

3 comments sorted by

1

u/neural_dataops 2h ago

That SQL Error [1105] [HY000] prefix is DBeaver's JDBC error format, and in Apache Doris the Flags = ' ,' message usually comes from a JDBC driver or session sql_mode mismatch on INSERT rather than a trailing comma in your VALUES clause.

First, check your DBeaver driver settings for the Doris connection: switch to the MySQL 5.1 or MariaDB JDBC driver if you are on MySQL Connector/J 8.x/9.x, and in Driver Properties set useServerPrepStmts=false (Doris does not fully support MySQL binary prepared statement flags on INSERT, which often surfaces as a malformed Flags error).

Second, run SHOW VARIABLES LIKE 'sql_mode'; in the same session to verify it is either empty or set to valid Doris modes like ONLY_FULL_GROUP_BY without stray spaces or commas. If you are inserting into a table with complex types like ARRAY or MAP, also share your Doris version and the table schema so it is easier to narrow down whether it is a Nereids planner bug.

1

u/silva_rhine 4h ago

Flags error usually means there's a formatting screw-up in the values youre trying to insert, like an extra comma or a missing quote somewhere. Double check your VALUES list, especially around string fields. Might be a sneaky trailing comma right before the closing parenthesis

1

u/Sanbi102 2m ago

Can you reproduce the same INSERT through the mysql CLI against a test table? That would help narrow down whether the problem is in the JDBC client or on the Doris side.