morningman commented on issue #2005: URL: https://github.com/apache/doris-website/issues/2005#issuecomment-6825269086
I checked the maintained Doris source rather than assuming a length is required. A table column declared as `VARCHAR` without `(M)` is accepted: `ColumnDefinition.updateCharacterTypeLength` supplies `VarcharType.MAX_VARCHAR_LENGTH`. The same handling is present in branches 3.0, 3.1, 4.0, 4.1 and master. Therefore the current PERCENT_RANK example is valid without an explicit length, and this does not require a documentation patch. Closing the reported example issue. Source example (3.0): https://github.com/apache/doris/blob/4090f6c40d2238b7aff73185bcada48f96fbd6be/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/info/ColumnDefinition.java#L193 This conclusion is based on source inspection; no live SQL execution is claimed. -- 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]
