Skip to content

No error for an ambiguous SELECT #12337

@ImeevMA

Description

@ImeevMA

Reproducer:

tarantool> box.execute([[SELECT a FROM (SELECT 1 AS a, 2 AS a);]])
---
- metadata:
  - name: a
    type: integer
  rows:
  - [1]
...

tarantool> box.execute([[SELECT * FROM (SELECT 1 AS a, 2 AS a);]])
---
- metadata:
  - name: a
    type: integer
  - name: a
    type: integer
  rows:
  - [1, 1]
...

In both cases, it is impossible to determine which value for a should be returned.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingsql

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions