Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Bamak
Helper V
Helper V

Consulta M - Combinar 2 tablas de consulta grande - Problema de combinación de Lef

Hola

Estoy tratando de combinar 2 tablas bigquery en la consulta M a través de izquierda externa, pero estoy enfrentando un problema extraño

Información : Si la unión interna , no hay ningún problema

Excepción:
ExceptionType: Microsoft.Mashup.Engine1.Library.Odbc.Interop.OdbcException, Microsoft.MashupEngine, Version.1.0.0.0, Culture-neutral, PublicKeyToken-31bf3856ad364e35
Mensaje: ERROR [42000] [Microsoft][BigQuery] (70) Consulta no válida: LEFT OUTER JOIN no se puede utilizar sin una condición que sea una igualdad de campos de ambos lados de la combinación.
StackTrace:
en Microsoft.Mashup.Engine1.Library.Odbc.Interop.OdbcUtils.HandleErrorCheckNoData (OdbcHandle hrHandle, RetCode retcode)
: Microsoft.Mashup.Engine1.Library.Odbc.OdbcService.OdbcEngineConnection.ExecuteStatement(String commandText, IList'1 parameters, OdbcStatementHandle (instrucción, OdbcBuffer& parameterBuffer)
Microsoft.Mashup.Engine1.Library.Odbc.OdbcService.OdbcEngineConnection.ExecuteDirect(String commandText, IList'1 parameters, RowRange rowRange)
Microsoft.Mashup.Engine1.Library.Odbc.OdbcTracingService.OdbcTracingConnection.ExecuteDirect(String commandText, IList'1 parameters, RowRange rowRange)
en Microsoft.Mashup.Engine1...

Para obtener información , consulte el código M -->

Dejar
Origen: GoogleBigQuery.Database([]),
.....
"Solicitudes combinadas" - Table.NestedJoin ("Otras columnas eliminadas", "string_field_0", accesslog, "string_field_0", "accesslog", JoinKind.LeftOuter),
"developed accesslog" - Table.ExpandTableColumn ("Solicitudes combinadas", "Accesslog", "string_field_0" - "accesslog.string_field_0")
En
"registro de acceso desarrollado"

La solicitud de plegado podría encontrarse en la consulta M diagnosis traker -->

seleccionar 'OTBL'.'string_field_0',
'ITBL'.'string_field_0' como 'C1'
De
(
Seleccionar 'string_field_0'
de 'CCCCC'.'CCCCC'accesslog2'
donde ('string_field_13' 'http://www.google.com' y 'string_field_13' no es nula) y (('string_field_0' á '10.0.235.71' y 'string_field_0' no es nula o 'string_field_0' - '10.1.160.165 ' y 'string_field_0' no es null) o ('string_field_0' á '10.1.238.116' y 'string_field_0' no es nulo o 'string_field_0' - '10.1.54.193' y 'string_field_0' no es nulo))
) como 'OTBL'
unión exterior izquierda
(
Seleccionar 'string_field_0'
de 'CCCCC'.'CCCCC'.'accesslog'
donde ('string_field_13' 'http://www.google.com' y 'string_field_13' no es nula) y (('string_field_0' á '10.0.235.71' y 'string_field_0' no es nula o 'string_field_0' - '10.1.160.165 ' y 'string_field_0' no es null) o ('string_field_0' á '10.1.238.116' y 'string_field_0' no es nulo o 'string_field_0' - '10.1.54.193' y 'string_field_0' no es nulo))
) como 'ITBL' en ('OTBL'.'string_field_0' ' 'ITBL'.'string_field_0' y 'OT string_field_0 BL'.'string_field_0' no es nula) y 'ITBL'.string_field_0'string_field_0' es nula)
LÍMITE 1000 DESPLAZAMIENTO 0

Quién muestra efectivamente un problema cuando se ejecuta en GCP BigQuery Console -->

LEFT OUTER JOIN no se puede utilizar sin una condición que sea una igualdad de campos de ambos lados de la unión.

Muchas gracias por cualquier ayuda y mejores saludos

Christophe

1 ACCEPTED SOLUTION

Hi

apparently the columns used in left join must be in REQUIRED mode
The query folding will be more refined, without OR conditions in the ON

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Bamak , ¿Tiene una consulta personalizada de antemano opción. O generado por power bi.

Si lo genera power bi y da error, registre un problema en -https://community.powerbi.com/t5/Issues/idb-p/Issues

Hola Amit

La consulta se genera al 100% por Desktop (consulta M)

Sólo 4 pasos

Problema en una combinación izquierda de fusión "simple"

Muchas gracias por información

Hi

apparently the columns used in left join must be in REQUIRED mode
The query folding will be more refined, without OR conditions in the ON

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.