Skip to content

Comparisons with schema:types properties inside if are incorrect #986

@gramian

Description

@gramian

ArcadeDB Version: 23.2.1 (build e8f512f/1677638572021/main)

JDK Version: openjdk 11.0.18 2023-01-17

OS: MacOS 12.6

When using comparison against the name property of schema:types inside a (conditional) expression, wrong logical results are returned.

Expected behavior

'doc' true true true true

Actual behavior

'doc' true false false false

Steps to reproduce

CREATE DOCUMENT TYPE doc;
SELECT name, (name = 'doc'),
             if( (name = 'doc'), true, false),
             if( (name IN ['doc','XXX']), true, false),
             ifnull( (name = 'doc'), null)
FROM schema:types

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions