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 2025/04/01 10:41:00 UTC

[jira] [Updated] (IGNITE-24979) Sql. Optimize row values conversion by sql engine to/from internal representation

     [ https://issues.apache.org/jira/browse/IGNITE-24979?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrey Mashenkov updated IGNITE-24979:
--------------------------------------
    Summary: Sql. Optimize row values conversion by sql engine to/from internal representation  (was: Sql. Optimize row values conversion)

> Sql. Optimize row values conversion by sql engine to/from internal representation
> ---------------------------------------------------------------------------------
>
>                 Key: IGNITE-24979
>                 URL: https://issues.apache.org/jira/browse/IGNITE-24979
>             Project: Ignite
>          Issue Type: Improvement
>          Components: sql
>            Reporter: Andrey Mashenkov
>            Priority: Major
>              Labels: ignite-3, performance
>             Fix For: 3.1
>
>
> As for now, to convert values into SQL engine internal representation and back, we rely on instance of method to detect value type.
> In most cases, we already have native type enum and could use it for value conversion. But by no reason, we convert enum to Class object and go non-optimal way with branchy if-tree and `instance of` calls.
> Let's replace or add optimized version of`TypeUtils.toInternal()` and `TypeUtils.frominternal()`
> Also, SafeCustomTypeInternalConversion uses HasMap for Enum keys instead of EnumMap.
> Let's fix this.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)