Hi
when I open Metabase log, I found many errors like
May 19 16:00:47 WARN metabase.query-processor.middleware.process-userland-query :: Query failure {:status :failed,
:class java.lang.Exception,
:error “java.lang.Exception”,
:stacktrace
("–> query_processor$fn__40397.invokeStatic(query_processor.clj:169)"
“query_processor$fn__40397.invoke(query_processor.clj:169)”
“query_processor__init.load(Unknown Source)”
“query_processor__init.(Unknown Source)”
“query_processor.async$loading__6706__auto____31425.invoke(async.clj:1)”
“query_processor.async__init.load(Unknown Source)”
“query_processor.async__init.(Unknown Source)”
“api.dataset$loading__6706__auto____43878.invoke(dataset.clj:1)”
“api.dataset__init.load(Unknown Source)”
“api.dataset__init.(Unknown Source)”
“routes$loading__6706__auto____60989.invoke(routes.clj:1)”
“routes__init.load(Unknown Source)”
“routes__init.(Unknown Source)”
“handler$loading__6706__auto____60987.invoke(handler.clj:1)”
“handler__init.load(Unknown Source)”
“handler__init.(Unknown Source)”
“core$loading__6706__auto____60985.invoke(core.clj:2)”
“core__init.load(Unknown Source)”
“core__init.(Unknown Source)”
“core.(Unknown Source)”),
:query
{:type “query”,
:query {:source-table 70499, :aggregation [“count”], :filter [“and” ["=" 1160420 3494]]},
:middleware {:add-default-userland-constraints? true, :userland-query? true, :disable-mbql->native? true},
:info
{:executed-by 97,
:context :ad-hoc,
:card-id nil,
:nested? false,
:query-hash [-66, -30, 29, 0, -43, -53, -110, -15, 79, 17, 114, 66, 47, 7, 20, 102, 3, -15, 82, -28, 89, -56, -52, 5, 111, -67, -34, -56, -41, -126, 45, 78]},
:constraints {:max-results 10000, :max-results-bare-rows 2000},
:results-promise
#<Promise@a630c17:
{:constraints {:max-results 10000, :max-results-bare-rows 2000},
:settings {},
:type :query,
:middleware {:add-default-userland-constraints? true, :userland-query? true, :disable-mbql->native? true},
:info
{:executed-by 97,
:context :ad-hoc,
:nested? false,
:query-hash [-66, -30, 29, 0, -43, -53, -110, -15, 79, 17, 114, 66, 47, 7, 20, 102, 3, -15, 82, -28, 89, -56, -52, 5, 111, -67, -34, -56, -41, -126, 45, 78]},
:database 16,
:driver :postgres,
:query {:source-table 70499, :aggregation [[:count]], :filter [:= [:field-id 1160420] [:value 3494 {:base_type :type/UUID, :special_type :type/FK, :database_type “uuid”}]]}}>}}
May 19 16:00:47 ERROR metabase.query-processor.middleware.mbql-to-native :: Error transforming MBQL query to native:
{:constraints {:max-results 10000, :max-results-bare-rows 2000},
:settings {},
:type :query,
:results-promise #<Promise@6aa7972: :not-delivered>,
:middleware {:add-default-userland-constraints? true, :userland-query? true},
:info
{:executed-by 97,
:context :ad-hoc,
:nested? false,
:query-hash [-66, -30, 29, 0, -43, -53, -110, -15, 79, 17, 114, 66, 47, 7, 20, 102, 3, -15, 82, -28, 89, -56, -52, 5, 111, -67, -34, -56, -41, -126, 45, 78]},
:database 16,
:driver :postgres,
:query {:source-table 70499, :aggregation [[:count]], :filter [:= [:field-id 1160420] [:value 3494 {:base_type :type/UUID, :special_type :type/FK, :database_type “uuid”}]]}}
May 19 16:00:47 WARN metabase.query-processor.middleware.process-userland-query :: Query failure {:status :failed,
:class java.lang.ClassCastException,
:error “class java.lang.Integer cannot be cast to class java.lang.String (java.lang.Integer and java.lang.String are in module java.base of loader ‘bootstrap’)”,
:stacktrace
("–> driver.postgres$fn__62762.invokeStatic(postgres.clj:145)"
“driver.postgres$fn__62762.invoke(postgres.clj:141)”
“driver.sql.query_processor$fn__35408.invokeStatic(query_processor.clj:409)”
“driver.sql.query_processor$fn__35408.invoke(query_processor.clj:408)”
“driver.sql.query_processor$fn__35438.invokeStatic(query_processor.clj:426)”
“driver.sql.query_processor$fn__35438.invoke(query_processor.clj:424)”
“driver.sql.query_processor$apply_top_level_clauses.invokeStatic(query_processor.clj:515)”
“driver.sql.query_processor$apply_top_level_clauses.invoke(query_processor.clj:510)”
“driver.sql.query_processor$apply_clauses.invokeStatic(query_processor.clj:573)”
“driver.sql.query_processor$apply_clauses.invoke(query_processor.clj:564)”
“driver.sql.query_processor$build_honeysql_form.invokeStatic(query_processor.clj:579)”
“driver.sql.query_processor$build_honeysql_form.invoke(query_processor.clj:575)”
“driver.sql.query_processor$mbql__GT_native.invokeStatic(query_processor.clj:609)”
“driver.sql.query_processor$mbql__GT_native.invoke(query_processor.clj:605)”
“driver.sql$fn__35587.invokeStatic(sql.clj:22)”
“driver.sql$fn__35587.invoke(sql.clj:21)”
“query_processor.middleware.mbql_to_native$query__GT_native_form$fn__34651.invoke(mbql_to_native.clj:16)”
“query_processor.middleware.mbql_to_native$query__GT_native_form.invokeStatic(mbql_to_native.clj:16)”
“query_processor.middleware.mbql_to_native$query__GT_native_form.invoke(mbql_to_native.clj:11)”
“query_processor.middleware.mbql_to_native$mbql__GT_native$fn__34658.invoke(mbql_to_native.clj:32)”
“query_processor.middleware.annotate$result_rows_maps__GT_vectors$fn__32695.invoke(annotate.clj:368)”
“query_processor.middleware.annotate$add_column_info$fn__32600.invoke(annotate.clj:303)”
“query_processor.middleware.cumulative_aggregations$handle_cumulative_aggregations$fn__34138.invoke(cumulative_aggregations.clj:57)”
“query_processor.middleware.limit$limit$fn__34631.invoke(limit.clj:19)”
“query_processor.middleware.results_metadata$record_and_return_metadata_BANG_$fn__40243.invoke(results_metadata.clj:86)”
“query_processor.middleware.format_rows$format_rows$fn__34619.invoke(format_rows.clj:26)”
“query_processor.middleware.add_dimension_projections$add_remapping$fn__31752.invoke(add_dimension_projections.clj:236)”
“query_processor.middleware.add_row_count_and_status$add_row_count_and_status$fn__32146.invoke(add_row_count_and_status.clj:16)”
“query_processor.middleware.driver_specific$process_query_in_context$fn__34380.invoke(driver_specific.clj:12)”
“query_processor.middleware.resolve_driver$resolve_driver$fn__37209.invoke(resolve_driver.clj:15)”
“query_processor.middleware.bind_effective_timezone$bind_effective_timezone$fn__33550$fn__33551.invoke(bind_effective_timezone.clj:9)”
“util.date$call_with_effective_timezone.invokeStatic(date.clj:88)”
“util.date$call_with_effective_timezone.invoke(date.clj:77)”
“query_processor.middleware.bind_effective_timezone$bind_effective_timezone$fn__33550.invoke(bind_effective_timezone.clj:8)”
“query_processor.middleware.store$initialize_store$fn__40268$fn__40269.invoke(store.clj:11)”
“query_processor.store$do_with_new_store.invokeStatic(store.clj:35)”
“query_processor.store$do_with_new_store.invoke(store.clj:31)”
“query_processor.middleware.store$initialize_store$fn__40268.invoke(store.clj:10)”
“query_processor.middleware.async$async__GT_sync$fn__33146.invoke(async.clj:19)”
“query_processor.middleware.async_wait$wait_for_turn$fn__33370.invoke(async_wait.clj:93)”
“query_processor.middleware.cache$maybe_return_cached_results$fn__33976.invoke(cache.clj:129)”
“query_processor.middleware.validate$validate_query$fn__40277.invoke(validate.clj:10)”
“query_processor.middleware.normalize_query$normalize$fn__34667.invoke(normalize_query.clj:11)”
“query_processor.middleware.catch_exceptions$catch_exceptions$fn__34031.invoke(catch_exceptions.clj:98)”
“query_processor.middleware.process_userland_query$process_userland_query$fn__37070.invoke(process_userland_query.clj:157)”
“query_processor.middleware.constraints$add_default_userland_constraints$fn__34081.invoke(constraints.clj:42)”
“query_processor.middleware.async$async_setup$fn__33210.invoke(async.clj:85)”
“query_processor$fn__40397$receive_native_query__40402$fn__40403.invoke(query_processor.clj:183)”
“query_processor$query__GT_native.invokeStatic(query_processor.clj:212)”
“query_processor$query__GT_native.invoke(query_processor.clj:204)”
“query_processor.middleware.catch_exceptions$fn__33990$fn__33992$fn__33995.invoke(catch_exceptions.clj:38)”
“query_processor.middleware.catch_exceptions$fn__33990$fn__33992.invoke(catch_exceptions.clj:37)”
“query_processor.middleware.catch_exceptions$fn__33990.invokeStatic(catch_exceptions.clj:34)”
“query_processor.middleware.catch_exceptions$fn__33990.invoke(catch_exceptions.clj:16)”
“query_processor.middleware.catch_exceptions$catch_exceptions$fn__34031$raise__34032.invoke(catch_exceptions.clj:96)”
“query_processor.middleware.async$async__GT_sync$fn__33146.invoke(async.clj:21)”
“query_processor.middleware.async_wait$runnable$fn__33277.invoke(async_wait.clj:71)”),
:query
{:type “query”,
:query {:source-table 70499, :aggregation [“count”], :filter [“and” ["=" 1160420 3494]]},
:middleware {:add-default-userland-constraints? true, :userland-query? true},
:info
{:executed-by 97,
:context :ad-hoc,
:card-id nil,
:nested? false,
:query-hash [-66, -30, 29, 0, -43, -53, -110, -15, 79, 17, 114, 66, 47, 7, 20, 102, 3, -15, 82, -28, 89, -56, -52, 5, 111, -67, -34, -56, -41, -126, 45, 78]},
:constraints {:max-results 10000, :max-results-bare-rows 2000},
:results-promise #<Promise@6aa7972: :not-delivered>}}
May 19 16:00:47 WARN metabase.query-processor.middleware.process-userland-query :: Query failure {:status :failed,
:class java.lang.ClassCastException,
:error “class java.lang.Integer cannot be cast to class java.lang.String (java.lang.Integer and java.lang.String are in module java.base of loader ‘bootstrap’)”,
:stacktrace
("–> driver.postgres$fn__62762.invokeStatic(postgres.clj:145)"
“driver.postgres$fn__62762.invoke(postgres.clj:141)”
“driver.sql.query_processor$fn__35408.invokeStatic(query_processor.clj:409)”
“driver.sql.query_processor$fn__35408.invoke(query_processor.clj:408)”
“driver.sql.query_processor$fn__35438.invokeStatic(query_processor.clj:426)”
“driver.sql.query_processor$fn__35438.invoke(query_processor.clj:424)”
“driver.sql.query_processor$apply_top_level_clauses.invokeStatic(query_processor.clj:515)”
“driver.sql.query_processor$apply_top_level_clauses.invoke(query_processor.clj:510)”
“driver.sql.query_processor$apply_clauses.invokeStatic(query_processor.clj:573)”
“driver.sql.query_processor$apply_clauses.invoke(query_processor.clj:564)”
“driver.sql.query_processor$build_honeysql_form.invokeStatic(query_processor.clj:579)”
“driver.sql.query_processor$build_honeysql_form.invoke(query_processor.clj:575)”
“driver.sql.query_processor$mbql__GT_native.invokeStatic(query_processor.clj:609)”
“driver.sql.query_processor$mbql__GT_native.invoke(query_processor.clj:605)”
“driver.sql$fn__35587.invokeStatic(sql.clj:22)”
“driver.sql$fn__35587.invoke(sql.clj:21)”
“query_processor.middleware.mbql_to_native$query__GT_native_form$fn__34651.invoke(mbql_to_native.clj:16)”
“query_processor.middleware.mbql_to_native$query__GT_native_form.invokeStatic(mbql_to_native.clj:16)”
“query_processor.middleware.mbql_to_native$query__GT_native_form.invoke(mbql_to_native.clj:11)”
“query_processor.middleware.mbql_to_native$mbql__GT_native$fn__34658.invoke(mbql_to_native.clj:32)”
“query_processor.middleware.annotate$result_rows_maps__GT_vectors$fn__32695.invoke(annotate.clj:368)”
“query_processor.middleware.annotate$add_column_info$fn__32600.invoke(annotate.clj:303)”
“query_processor.middleware.cumulative_aggregations$handle_cumulative_aggregations$fn__34138.invoke(cumulative_aggregations.clj:57)”
“query_processor.middleware.limit$limit$fn__34631.invoke(limit.clj:19)”
“query_processor.middleware.results_metadata$record_and_return_metadata_BANG_$fn__40243.invoke(results_metadata.clj:86)”
“query_processor.middleware.format_rows$format_rows$fn__34619.invoke(format_rows.clj:26)”
“query_processor.middleware.add_dimension_projections$add_remapping$fn__31752.invoke(add_dimension_projections.clj:236)”
“query_processor.middleware.add_row_count_and_status$add_row_count_and_status$fn__32146.invoke(add_row_count_and_status.clj:16)”
“query_processor.middleware.driver_specific$process_query_in_context$fn__34380.invoke(driver_specific.clj:12)”
“query_processor.middleware.resolve_driver$resolve_driver$fn__37209.invoke(resolve_driver.clj:15)”
“query_processor.middleware.bind_effective_timezone$bind_effective_timezone$fn__33550$fn__33551.invoke(bind_effective_timezone.clj:9)”
“util.date$call_with_effective_timezone.invokeStatic(date.clj:88)”
“util.date$call_with_effective_timezone.invoke(date.clj:77)”
“query_processor.middleware.bind_effective_timezone$bind_effective_timezone$fn__33550.invoke(bind_effective_timezone.clj:8)”
“query_processor.middleware.store$initialize_store$fn__40268$fn__40269.invoke(store.clj:11)”
“query_processor.store$do_with_new_store.invokeStatic(store.clj:35)”
“query_processor.store$do_with_new_store.invoke(store.clj:31)”
“query_processor.middleware.store$initialize_store$fn__40268.invoke(store.clj:10)”
“query_processor.middleware.async$async__GT_sync$fn__33146.invoke(async.clj:19)”
“query_processor.middleware.async_wait$runnable$fn__33277.invoke(async_wait.clj:71)”),
:query
{:type “query”,
:query {:source-table 70499, :aggregation [“count”], :filter [“and” ["=" 1160420 3494]]},
:async? true,
:middleware {:add-default-userland-constraints? true, :userland-query? true},
:info
{:executed-by 97,
:context :ad-hoc,
:card-id nil,
:nested? false,
:query-hash [-66, -30, 29, 0, -43, -53, -110, -15, 79, 17, 114, 66, 47, 7, 20, 102, 3, -15, 82, -28, 89, -56, -52, 5, 111, -67, -34, -56, -41, -126, 45, 78]},
:constraints {:max-results 10000, :max-results-bare-rows 2000}},
:preprocessed
{:constraints {:max-results 10000, :max-results-bare-rows 2000},
:settings {},
:type :query,
:middleware {:add-default-userland-constraints? true, :userland-query? true},
:info
{:executed-by 97,
:context :ad-hoc,
:nested? false,
:query-hash [-66, -30, 29, 0, -43, -53, -110, -15, 79, 17, 114, 66, 47, 7, 20, 102, 3, -15, 82, -28, 89, -56, -52, 5, 111, -67, -34, -56, -41, -126, 45, 78]},
:database 16,
:driver :postgres,
:query {:source-table 70499, :aggregation [[:count]], :filter [:= [:field-id 1160420] [:value 3494 {:base_type :type/UUID, :special_type :type/FK, :database_type “uuid”}]]}},
:native nil}