You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Andrey Mashenkov (Jira)" <ji...@apache.org> on 2023/08/10 11:36:00 UTC
[jira] [Updated] (IGNITE-20192) Fix default length for variable-length columns.
[ https://issues.apache.org/jira/browse/IGNITE-20192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrey Mashenkov updated IGNITE-20192:
--------------------------------------
Description:
By default, we use 65536 or 0 (which is converted to 65536) as default length for variable-length columns.
Let's avoid using `0` (zero) as magic number and use excplicitly 65535 number, which is fit to unsinged 16-bit integer.
was:It was discovered that there is a bug in *org.apache.ignite.internal.catalog.commands.CatalogUtils#fromParams(org.apache.ignite.internal.catalog.commands.ColumnParams)*, it uses fields (precision, scale, length) with a default value of *0*, but we need to use constants from *org.apache.ignite.internal.schema.TemporalNativeType*.
> Fix default length for variable-length columns.
> -----------------------------------------------
>
> Key: IGNITE-20192
> URL: https://issues.apache.org/jira/browse/IGNITE-20192
> Project: Ignite
> Issue Type: Bug
> Reporter: Andrey Mashenkov
> Assignee: Andrey Mashenkov
> Priority: Major
> Labels: ignite-3
> Fix For: 3.0.0-beta2
>
>
> By default, we use 65536 or 0 (which is converted to 65536) as default length for variable-length columns.
> Let's avoid using `0` (zero) as magic number and use excplicitly 65535 number, which is fit to unsinged 16-bit integer.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)