Zoltan Borok-Nagy has posted comments on this change. ( http://gerrit.cloudera.org:8080/25170 )
Change subject: IMPALA-15434: [DOCS] Document the VARIANT data type ...................................................................... Patch Set 3: (10 comments) http://gerrit.cloudera.org:8080/#/c/25170/3/docs/topics/impala_variant.xml File docs/topics/impala_variant.xml: http://gerrit.cloudera.org:8080/#/c/25170/3/docs/topics/impala_variant.xml@44 PS3, Line 44: variant should be upper-case http://gerrit.cloudera.org:8080/#/c/25170/3/docs/topics/impala_variant.xml@46 PS3, Line 46: The type is : read-only. You cannot declare a VARIANT column or write VARIANT values with Impala. Add separate Limitations sections. http://gerrit.cloudera.org:8080/#/c/25170/3/docs/topics/impala_variant.xml@53 PS3, Line 53: Unlike the complex types, it is not : controlled by the <codeph>EXPAND_COMPLEX_TYPES</codeph> query option, and : <codeph>SELECT *</codeph> always returns the VARIANT columns. not needed http://gerrit.cloudera.org:8080/#/c/25170/3/docs/topics/impala_variant.xml@62 PS3, Line 62: Shredded VARIANT values in Parquet files, and : VARIANT columns in Avro or ORC data files, are not supported. should go to Limitations section. http://gerrit.cloudera.org:8080/#/c/25170/3/docs/topics/impala_variant.xml@63 PS3, Line 63: Impala checks the : formats of the data files that the query scans, not the default file format of the : table. Implementation detail, not needed. http://gerrit.cloudera.org:8080/#/c/25170/3/docs/topics/impala_variant.xml@68 PS3, Line 68: A VARIANT that is nested in an <codeph>ARRAY</codeph>, <codeph>MAP</codeph> or : <codeph>STRUCT</codeph> column cannot be queried. should go to Limitations http://gerrit.cloudera.org:8080/#/c/25170/3/docs/topics/impala_variant.xml@70 PS3, Line 70: When the : <xref href="impala_expand_complex_types.xml#expand_complex_types"/> query option : is <codeph>TRUE</codeph>, which is the default, <codeph>SELECT *</codeph> also : returns the columns that contain the nested VARIANT, so it fails on such a table. : List the columns explicitly, or set the option to <codeph>FALSE</codeph>. Not needed, it's enough to say that VARIANTs in nested types cannot be queried. http://gerrit.cloudera.org:8080/#/c/25170/3/docs/topics/impala_variant.xml@195 PS3, Line 195: Impala does : not convert the variant values that are stored as decimals, so for those values, : use <codeph>string</codeph> instead. Spark, for example, stores JSON numbers : such as <codeph>9.99</codeph> as decimals. Do not document it as it is subject to change (https://gerrit.cloudera.org/#/c/25184/) http://gerrit.cloudera.org:8080/#/c/25170/3/docs/topics/impala_variant.xml@253 PS3, Line 253: VARIANT values cannot be compared, sorted or hashed. You cannot use a VARIANT : expression in the following clauses: Mention that one can still use [try_]variant_get() in the following clauses if they return a primitive type. http://gerrit.cloudera.org:8080/#/c/25170/3/docs/topics/impala_variant.xml@307 PS3, Line 307: If the conversion fails, a query that returns the VARIANT value fails, and so does : <codeph>variant_get()</codeph> with the <codeph>string</codeph> type. Impala does : not return <codeph>NULL</codeph> for these values. : <codeph>try_variant_get()</codeph> with the <codeph>string</codeph> type and : <codeph>variant_to_json()</codeph> return <codeph>NULL</codeph> with a warning : instead. This is already mentioned multiple times. One place is enough. -- To view, visit http://gerrit.cloudera.org:8080/25170 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I26e7286416a7cd4dd6a0ddde50d6c14cd319c351 Gerrit-Change-Number: 25170 Gerrit-PatchSet: 3 Gerrit-Owner: Noemi Pap-Takacs <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Noemi Pap-Takacs <[email protected]> Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]> Gerrit-Comment-Date: Fri, 30 Oct 2026 09:13:53 +0000 Gerrit-HasComments: Yes
