You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Pavel Pereslegin (Jira)" <ji...@apache.org> on 2024/08/23 10:07:00 UTC

[jira] [Updated] (IGNITE-23060) Sql. Move rules from typeFamiliesAreCompatible into IgniteCustomAssignmentsRules

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

Pavel Pereslegin updated IGNITE-23060:
--------------------------------------
    Description: 
{{TypeUtils.typeFamiliesAreCompatible}} checks that types have compatible type families taking into account custom data types (types have compatible type families if type can be assigned to another type and vice-versa)

{{IgniteCustomAssignmentsRules}} is more relaxed and determines whether a type is assignable from another type , but doesn't take into account custom types (currently operates with SqlTypeName not RelDataType).

Looks like we need to move checks from {{typeFamiliesAreCompatible}} into {{IgniteCustomAssignmentsRules}} if possible.


  was:
{{TypeUtils.typeFamiliesAreCompatible}} checks that types have compatible type families taking into account custom data types (types have compatible type families if type can be assigned to another type and vice-versa)

{{IgniteCustomAssignmentsRules}} is more relaxed and determine whether a type is assignable from another type , but doesn't take into account custom types (currently operates with SqlTypeName not RelDataType).

Looks like we need to move checks from {{typeFamiliesAreCompatible}} into {{IgniteCustomAssignmentsRules}} if possible.



> Sql. Move rules from typeFamiliesAreCompatible into IgniteCustomAssignmentsRules
> --------------------------------------------------------------------------------
>
>                 Key: IGNITE-23060
>                 URL: https://issues.apache.org/jira/browse/IGNITE-23060
>             Project: Ignite
>          Issue Type: Improvement
>          Components: sql
>            Reporter: Pavel Pereslegin
>            Priority: Major
>              Labels: ignite-3
>
> {{TypeUtils.typeFamiliesAreCompatible}} checks that types have compatible type families taking into account custom data types (types have compatible type families if type can be assigned to another type and vice-versa)
> {{IgniteCustomAssignmentsRules}} is more relaxed and determines whether a type is assignable from another type , but doesn't take into account custom types (currently operates with SqlTypeName not RelDataType).
> Looks like we need to move checks from {{typeFamiliesAreCompatible}} into {{IgniteCustomAssignmentsRules}} if possible.



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