Hi,
I tried the new pivot tables visualization in both 0.38.0 versions but they don’t work. Spinning, spinning and then “We’re experiencing server issues.”
Is there a bug? Has anyone gotten this feature to work? I’ve been waiting for this feature for a long time…
The Docker container log last few lines are:
“query_processor.middleware.fetch_source_query$resolve_card_id_source_tables$fn__46110.invoke(fetch_source_query.clj:267)”,
“query_processor.middleware.store$initialize_store$fn__47831$fn__47832.invoke(store.clj:11)”,
“query_processor.store$do_with_store.invokeStatic(store.clj:46)”,
“query_processor.store$do_with_store.invoke(store.clj:40)”,
“query_processor.middleware.store$initialize_store$fn__47831.invoke(store.clj:10)”,
“query_processor.middleware.cache$maybe_return_cached_results$fn__45150.invoke(cache.clj:214)”,
“query_processor.middleware.validate$validate_query$fn__47840.invoke(validate.clj:10)”,
“query_processor.middleware.normalize_query$normalize$fn__46234.invoke(normalize_query.clj:22)”,
“query_processor.middleware.add_rows_truncated$add_rows_truncated$fn__43914.invoke(add_rows_truncated.clj:36)”,
“query_processor.middleware.results_metadata$record_and_return_metadata_BANG_$fn__47807.invoke(results_metadata.clj:147)”,
“query_processor.middleware.constraints$add_default_userland_constraints$fn__45513.invoke(constraints.clj:42)”,
“query_processor.middleware.process_userland_query$process_userland_query$fn__46975.invoke(process_userland_query.clj:136)”,
“query_processor.middleware.catch_exceptions$catch_exceptions$fn__45456.invoke(catch_exceptions.clj:174)”,
“query_processor.reducible$async_qp$qp_STAR___36611$thunk__36612.invoke(reducible.clj:103)”,
“query_processor.reducible$async_qp$qp_STAR___36611.invoke(reducible.clj:109)”,
“query_processor.reducible$sync_qp$qp_STAR___36620$fn__36623.invoke(reducible.clj:135)”,
“query_processor.reducible$sync_qp$qp_STAR___36620.invoke(reducible.clj:134)”,
“query_processor$process_userland_query.invokeStatic(query_processor.clj:238)”,
“query_processor$process_userland_query.doInvoke(query_processor.clj:234)”,
“query_processor$fn__47886$process_query_and_save_execution_BANG___47895$fn__47898.invoke(query_processor.clj:250)”,
“query_processor$fn__47886$process_query_and_save_execution_BANG___47895.invoke(query_processor.clj:242)”,
“query_processor$fn__47930$process_query_and_save_with_max_results_constraints_BANG___47939$fn__47942.invoke(query_processor.clj:262)”,
“query_processor$fn__47930$process_query_and_save_with_max_results_constraints_BANG___47939.invoke(query_processor.clj:255)”,
“api.dataset$fn__49120$fn__49123.invoke(dataset.clj:59)”,
“query_processor.streaming$streaming_response_STAR_$fn__49101$fn__49102.invoke(streaming.clj:73)”,
“query_processor.streaming$streaming_response_STAR_$fn__49101.invoke(streaming.clj:72)”,
“async.streaming_response$do_f_STAR_.invokeStatic(streaming_response.clj:66)”,
“async.streaming_response$do_f_STAR_.invoke(streaming_response.clj:64)”,
“async.streaming_response$do_f_async$fn__24641.invoke(streaming_response.clj:85)”],
:context :ad-hoc,
:error “Broken pipe”,
:row_count 0,
:running_time 0,
:preprocessed,
{:database 4,
:query,
{:source-table 20,
:aggregation [[:aggregation-options [:sum [:field-id 542]] {:name “sum”}]],
:breakout [[:field-id 536] [:field-id 550] [:field-id 552]],
:order-by [[:asc [:field-id 536]] [:asc [:field-id 550]] [:asc [:field-id 552]]]},
:type :query,
:middleware {:js-int-to-string? true, :add-default-userland-constraints? true},
:info,
{:executed-by 1,
:context :ad-hoc,
:nested? false,
:query-hash [-55, 19, -72, 81, -46, -121, 105, 57, -77, 58, 103, -18, -89, 116, -116, -58, 77, -106, 28, 24, -37, -111, -64, -47, -93, -91, 74, -117, -40, -117, -12, -127]},
:constraints {:max-results 10000, :max-results-bare-rows 2000}},
:data {:rows [], :cols []}},
,
2020-12-18 15:17:51,724 DEBUG middleware.log :: POST /api/dataset 202 [ASYNC: canceled] 5.1 s (11 DB calls) App DB connections: 0/7 Jetty threads: 4/50 (2 idle, 0 queued) (59 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:18:00,787 DEBUG middleware.log :: GET /api/session/properties 200 33.8 ms (2 DB calls) App DB connections: 2/7 Jetty threads: 7/50 (2 idle, 0 queued) (59 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:18:00,819 DEBUG middleware.log :: GET /api/user/current 200 58.4 ms (3 DB calls) App DB connections: 0/7 Jetty threads: 7/50 (2 idle, 0 queued) (59 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:18:00,877 DEBUG middleware.log :: GET /api/database 200 16.8 ms (3 DB calls) App DB connections: 0/7 Jetty threads: 5/50 (2 idle, 0 queued) (59 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:18:00,931 DEBUG middleware.log :: GET /api/collection/root/items 200 40.0 ms (6 DB calls) App DB connections: 1/7 Jetty threads: 6/50 (2 idle, 0 queued) (59 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:18:01,035 DEBUG middleware.log :: GET /api/collection/root 200 19.2 ms (2 DB calls) App DB connections: 1/7 Jetty threads: 5/50 (2 idle, 0 queued) (59 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:18:05,398 DEBUG middleware.log :: GET /api/collection/tree 200 22.4 ms (3 DB calls) App DB connections: 1/7 Jetty threads: 7/50 (2 idle, 0 queued) (59 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:18:05,431 DEBUG middleware.log :: GET /api/collection/65/items 200 61.1 ms (8 DB calls) App DB connections: 0/7 Jetty threads: 5/50 (2 idle, 0 queued) (59 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:18:05,518 DEBUG middleware.log :: GET /api/collection/65 200 15.2 ms (3 DB calls) App DB connections: 0/7 Jetty threads: 5/50 (2 idle, 0 queued) (59 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:18:11,349 DEBUG middleware.log :: GET /api/search 200 97.4 ms (3 DB calls) App DB connections: 0/7 Jetty threads: 5/50 (2 idle, 0 queued) (59 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:18:25,439 DEBUG middleware.log :: GET /api/collection 200 12.5 ms (3 DB calls) App DB connections: 0/7 Jetty threads: 5/50 (2 idle, 0 queued) (59 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:18:45,860 INFO api.card :: Card results metadata passed in to API is MISSING. Running query to fetch correct metadata.,
2020-12-18 15:18:47,198 DEBUG middleware.log :: POST /api/card 202 [ASYNC: completed] 1.5 s (35 DB calls) App DB connections: 3/7 Jetty threads: 4/50 (3 idle, 0 queued) (57 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:18:52,177 DEBUG middleware.log :: POST /api/dataset 202 [ASYNC: completed] 991.3 ms (11 DB calls) App DB connections: 1/7 Jetty threads: 4/50 (3 idle, 0 queued) (59 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:19:07,441 DEBUG middleware.log :: POST /api/advanced_computation/pivot/dataset 202 [ASYNC: completed] 145.0 ms (13 DB calls) App DB connections: 0/7 Jetty threads: 4/50 (4 idle, 0 queued) (59 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:26:11,934 DEBUG middleware.log :: GET /api/user/current 200 13.9 ms (3 DB calls) App DB connections: 0/7 Jetty threads: 7/50 (0 idle, 0 queued) (55 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:26:11,957 DEBUG middleware.log :: GET /api/session/properties 200 18.8 ms (2 DB calls) App DB connections: 0/7 Jetty threads: 6/50 (0 idle, 0 queued) (56 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:26:12,059 DEBUG middleware.log :: GET /api/database 200 61.9 ms (3 DB calls) App DB connections: 0/7 Jetty threads: 7/50 (2 idle, 0 queued) (59 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:26:12,552 DEBUG middleware.log :: GET /api/table/20/query_metadata 200 476.2 ms (9 DB calls) App DB connections: 1/7 Jetty threads: 7/50 (0 idle, 0 queued) (60 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:26:12,582 DEBUG middleware.log :: GET /api/database 200 495.7 ms (12 DB calls) App DB connections: 0/7 Jetty threads: 7/50 (0 idle, 0 queued) (60 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:26:12,602 DEBUG middleware.log :: GET /api/database 200 547.0 ms (4 DB calls) App DB connections: 0/7 Jetty threads: 7/50 (0 idle, 0 queued) (61 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:26:12,995 DEBUG middleware.log :: POST /api/advanced_computation/pivot/dataset 202 [ASYNC: completed] 167.6 ms (12 DB calls) App DB connections: 0/7 Jetty threads: 4/50 (2 idle, 0 queued) (64 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:38:09,677 DEBUG middleware.log :: GET /api/session/properties 200 19.6 ms (2 DB calls) App DB connections: 1/7 Jetty threads: 7/50 (0 idle, 0 queued) (56 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:38:09,730 DEBUG middleware.log :: GET /api/user/current 200 81.1 ms (3 DB calls) App DB connections: 0/7 Jetty threads: 6/50 (0 idle, 0 queued) (58 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:38:09,829 DEBUG middleware.log :: GET /api/database 200 51.5 ms (3 DB calls) App DB connections: 2/7 Jetty threads: 8/50 (1 idle, 0 queued) (60 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:38:09,927 DEBUG middleware.log :: GET /api/card/801 200 87.2 ms (6 DB calls) App DB connections: 1/7 Jetty threads: 7/50 (0 idle, 0 queued) (62 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:38:09,964 DEBUG middleware.log :: GET /api/database 200 172.5 ms (4 DB calls) App DB connections: 0/7 Jetty threads: 6/50 (0 idle, 0 queued) (62 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:38:09,966 DEBUG middleware.log :: GET /api/database 200 165.4 ms (13 DB calls) App DB connections: 0/7 Jetty threads: 6/50 (0 idle, 0 queued) (62 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:38:10,029 DEBUG middleware.log :: GET /api/alert/question/801 200 14.9 ms (1 DB calls) App DB connections: 1/7 Jetty threads: 7/50 (1 idle, 0 queued) (62 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:38:10,153 DEBUG middleware.log :: GET /api/table/20/query_metadata 200 120.5 ms (8 DB calls) App DB connections: 0/7 Jetty threads: 5/50 (1 idle, 0 queued) (62 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:38:10,257 DEBUG middleware.log :: GET /api/collection/65 200 15.3 ms (3 DB calls) App DB connections: 0/7 Jetty threads: 5/50 (2 idle, 0 queued) (62 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:38:10,410 INFO api.card :: Question’s average execution duration is 1.7 s; using ‘magic’ TTL of 2.8 mins ,
2020-12-18 15:38:12,063 INFO middleware.cache :: Query took 1.6 s to run; minimum for cache eligibility is 30.0 s,
2020-12-18 15:38:12,206 DEBUG middleware.log :: POST /api/card/801/query 202 [ASYNC: completed] 1.8 s (13 DB calls) App DB connections: 0/7 Jetty threads: 4/50 (2 idle, 0 queued) (66 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:38:14,950 DEBUG middleware.log :: POST /api/advanced_computation/pivot/dataset 202 [ASYNC: completed] 203.4 ms (13 DB calls) App DB connections: 0/7 Jetty threads: 4/50 (2 idle, 0 queued) (67 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:40:10,183 DEBUG middleware.log :: GET /api/user/current 200 11.0 ms (3 DB calls) App DB connections: 0/7 Jetty threads: 6/50 (2 idle, 0 queued) (60 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:40:10,185 DEBUG middleware.log :: GET /api/session/properties 200 14.4 ms (2 DB calls) App DB connections: 0/7 Jetty threads: 6/50 (2 idle, 0 queued) (61 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:40:10,264 DEBUG middleware.log :: GET /api/database 200 21.1 ms (3 DB calls) App DB connections: 0/7 Jetty threads: 7/50 (0 idle, 0 queued) (62 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:40:10,405 DEBUG middleware.log :: GET /api/card/801 200 101.2 ms (6 DB calls) App DB connections: 1/7 Jetty threads: 9/50 (0 idle, 0 queued) (65 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:40:10,439 DEBUG middleware.log :: GET /api/database 200 175.0 ms (4 DB calls) App DB connections: 1/7 Jetty threads: 7/50 (1 idle, 0 queued) (66 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:40:10,454 DEBUG middleware.log :: GET /api/database 200 155.3 ms (13 DB calls) App DB connections: 0/7 Jetty threads: 6/50 (1 idle, 0 queued) (66 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:40:10,580 DEBUG middleware.log :: GET /api/table/20/query_metadata 200 90.8 ms (8 DB calls) App DB connections: 0/7 Jetty threads: 5/50 (2 idle, 0 queued) (66 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:40:10,943 DEBUG middleware.log :: POST /api/advanced_computation/pivot/dataset 202 [ASYNC: completed] 174.9 ms (12 DB calls) App DB connections: 0/7 Jetty threads: 4/50 (3 idle, 0 queued) (67 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:40:28,035 DEBUG middleware.log :: GET /api/card/801 200 64.2 ms (6 DB calls) App DB connections: 0/7 Jetty threads: 5/50 (3 idle, 0 queued) (67 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:40:28,085 DEBUG middleware.log :: GET /api/alert/question/801 200 4.0 ms (1 DB calls) App DB connections: 0/7 Jetty threads: 5/50 (3 idle, 0 queued) (67 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:40:28,113 DEBUG middleware.log :: GET /api/collection/65 200 9.3 ms (3 DB calls) App DB connections: 0/7 Jetty threads: 5/50 (3 idle, 0 queued) (67 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:40:28,229 INFO api.card :: Question’s average execution duration is 1.7 s; using ‘magic’ TTL of 2.8 mins ,
2020-12-18 15:40:29,756 INFO middleware.cache :: Query took 1.5 s to run; minimum for cache eligibility is 30.0 s,
2020-12-18 15:40:29,809 DEBUG middleware.log :: POST /api/card/801/query 202 [ASYNC: completed] 1.6 s (13 DB calls) App DB connections: 0/7 Jetty threads: 4/50 (3 idle, 0 queued) (72 total active threads) Queries in flight: 0 (0 queued),
2020-12-18 15:41:53,507 DEBUG middleware.log :: POST /api/advanced_computation/pivot/dataset 202 [ASYNC: completed] 182.7 ms (13 DB calls) App DB connections: 0/7 Jetty threads: 4/50 (5 idle, 0 queued) (66 total active threads) Queries in flight: 0 (0 queued),