Copilot commented on code in PR #362:
URL:
https://github.com/apache/doris-spark-connector/pull/362#discussion_r3330262554
##########
spark-doris-connector/spark-doris-connector-base/src/main/java/org/apache/doris/spark/config/DorisOptions.java:
##########
@@ -142,6 +142,8 @@ public class DorisOptions {
public static final ConfigOption<Boolean> DORIS_READ_BITMAP_TO_BASE64 =
ConfigOptions.name("doris.read.bitmap-to-base64").booleanType().defaultValue(false).withDescription("");
+ public static final ConfigOption<Boolean> DORIS_READ_ARRAY_NATIVE_TYPE =
ConfigOptions.name("doris.read.array.native-type").booleanType().defaultValue(false).withDescription("If
true, Doris ARRAY columns are read as Spark ArrayType(StringType) instead of a
JSON-formatted String. Defaults to false for backward compatibility.");
Review Comment:
The option description says the legacy ARRAY representation is a
“JSON-formatted String”, but the current non-native path uses `List.toString()`
(e.g. `[Alice, Bob]`), which is not valid JSON (no quoting/escaping). This
description is misleading for users and for anyone relying on strict JSON
parsing.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]