The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
fix: replace usage of source-table-id with primary-source-table-id (#70162)
Nicola Momettob8c13482df69
diff --git a/src/metabase/transforms_inspector/query_analysis.clj b/src/metabase/transforms_inspector/query_analysis.cljindex 43054069abc..7b51591e138 100644--- a/src/metabase/transforms_inspector/query_analysis.clj+++ b/src/metabase/transforms_inspector/query_analysis.clj@@ -61,7 +61,7 @@(mapv (fn [join]{:strategy (or (:strategy join) :left-join):alias (:alias join)- :source-table (lib/source-table-id join)+ :source-table (-> join :stages first :source-table):conditions (:conditions join)})joins)))@@ -85,7 +85,7 @@qp.preprocess/preprocess)](when (<= (count (:stages preprocessed)) 1){:preprocessed-query preprocessed- :from-table-id (lib/source-table-id preprocessed)+ :from-table-id (lib/primary-source-table-id preprocessed):join-structure (extract-mbql-join-structure preprocessed):visited-fields (extract-mbql-visited-fields preprocessed)})))