Skip to content

Code 47 UNKNOWN_IDENTIFIER: Identifier 's.id' cannot be resolved from subquery with name s ... Maybe you meant: ['s.id1'] #66

Description

@tomh4

When querying with LINQ and adding nested navigation props with Include or ThenInclude e.g.:

 var parent = await ctx.Parents
            .Where(p => p.Id == 1L)
            .Include(p => p.Children)
                .ThenInclude(c => c.GrandChildren)
            .SingleOrDefaultAsync();

an error occurs:

ClickHouse.Driver.ClickHouseServerException (0x0000002F): Code: 47. DB::Exception: Identifier 's.id' cannot be resolved from subquery with name s. In scope SELECT c0.id, ..., s.id AS id0, .... Maybe you meant: ['s.id1']. (UNKNOWN_IDENTIFIER) (version 25.8.29.51 (official build))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions