Files
scylladb/cql3
Jan Ciolek 1bcb4c024c cql3/expr: print expressions in user-friendly way by default
When a CQL expression is printed, it can be done using
either the `debug` mode, or the `user` mode.

`user` mode is basically how you would expect the CQL
to be printed, it can be printed and then parsed back.

`debug` mode is more detailed, for example in `debug`
mode a column name can be displayed as
`unresolved_identifier(my_column)`, which can't
be parsed back to CQL.

The default way of printing is the `debug` mode,
but this requires us to remember to enable the `user`
mode each time we're printing a user-facing message,
for example for an invalid_request_exception.

It's cumbersome and people forget about it,
so let's change the default to `user`.

There issues about expressions being printed
in a `strange` way, this fixes them.

Signed-off-by: Jan Ciolek <jan.ciolek@scylladb.com>

Closes #13916
2023-05-18 20:57:00 +03:00
..
2023-02-28 22:26:43 +02:00
2023-02-14 11:19:03 +02:00
2023-04-29 13:11:31 +02:00
2023-01-18 10:38:24 +02:00
2023-02-15 11:09:04 +02:00
2023-04-26 14:09:58 +08:00
2023-01-18 10:38:24 +02:00
2023-02-15 11:09:04 +02:00
2023-04-28 16:59:29 +08:00
2023-02-15 11:09:04 +02:00
2023-02-19 21:05:45 +02:00