ClickHouse / ClickHouse/ClickHouse.EntityFrameworkCore
Code 47 UNKNOWN_IDENTIFIER: Identifier 's.id' cannot be resolved from subquery with name s ... Maybe you meant: ['s.id1']
- Lenguaje dominante
- C#
- Estrellas
- 23
- Forks
- 7
- Merge medio
- 14 d 3 h
- PR fusionados (30 d)
- 1
Descripción
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))
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Start by reproducing the reported LINQ query with Include and ThenInclude against ClickHouse, then inspect the generated query around the unresolved s.id and s.id1 identifiers. Done means the nested navigation query executes successfully without the Code 47 UNKNOWN_IDENTIFIER error.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- clickhouse, csharp
- Área
- database
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Activo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 50/100