a-cid opened a new issue #17099: URL: https://github.com/apache/superset/issues/17099
The following error is thrown when loading a Mixed time-series chart with the Global Async Queries feature turned on:  Here's my superset_config_docker.py: ``` import os from typing import Optional def get_env_variable(var_name: str, default: Optional[str] = None) -> str: """Get the environment variable or raise exception.""" try: return os.environ[var_name] except KeyError: if default is not None: return default else: error_msg = "The environment variable {} was missing, abort...".format( var_name ) raise EnvironmentError(error_msg) REDIS_HOST = get_env_variable("REDIS_HOST") REDIS_PORT = get_env_variable("REDIS_PORT") FEATURE_FLAGS = { "GLOBAL_ASYNC_QUERIES": True } GLOBAL_ASYNC_QUERIES_JWT_SECRET = 'v2jHEh8gG2yw56ReLEvGwGTSgETRu26U' GLOBAL_ASYNC_QUERIES_REDIS_CONFIG = { "port": REDIS_PORT, "host": REDIS_HOST, "password": "", "db": 0, "ssl": False, } DATA_CACHE_CONFIG = { 'CACHE_TYPE': 'redis', 'CACHE_DEFAULT_TIMEOUT': 60 * 5, # 5 minutes 'CACHE_KEY_PREFIX': 'superset_results', 'CACHE_REDIS_URL': 'redis://%s:%s/0' % (REDIS_HOST, REDIS_PORT), } CACHE_CONFIG = { 'CACHE_TYPE': 'redis', 'CACHE_DEFAULT_TIMEOUT': 60 * 5, # 5 minutes 'CACHE_KEY_PREFIX': 'superset_cache', 'CACHE_REDIS_URL': 'redis://%s:%s/0' % (REDIS_HOST, REDIS_PORT), } ``` The following error is raised in the browser console: ``` TypeError: queriesData[1] is undefined transformProps transformProps.js:45 processChartProps SuperChartCore.js:37 memoizedResultFunc index.js:70 defaultMemoize index.js:30 selector index.js:84 defaultMemoize index.js:30 renderChart SuperChartCore.js:66 render index.js:241 finishClassComponent react-dom.development.js:17185 updateClassComponent react-dom.development.js:17135 beginWork react-dom.development.js:18654 callCallback react-dom.development.js:189 invokeGuardedCallbackDev react-dom.development.js:238 invokeGuardedCallback react-dom.development.js:293 beginWork$1 react-dom.development.js:23235 performUnitOfWork react-dom.development.js:22189 workLoopSync react-dom.development.js:22162 performSyncWorkOnRoot react-dom.development.js:21788 flushSyncCallbackQueueImpl react-dom.development.js:11112 unstable_runWithPriority scheduler.development.js:653 runWithPriority$1 react-dom.development.js:11062 flushSyncCallbackQueueImpl react-dom.development.js:11107 flushSyncCallbackQueue react-dom.development.js:11095 batchedUpdates$1 react-dom.development.js:21894 Redux 4 notify notifyNestedSubs handleChangeWrapper dispatch loggerMiddleware loggerMiddleware.js:68 Redux 2 createThunkMiddleware dispatch chartDataRequestCaught chartAction.js:437 Chart.jsx:150 ``` #### How to reproduce the bug 1. Checkout 1.3.1 2. Fill in superset config cited above. 3. Start superset using docker-compose 4. Create a mixed time-series chart. 5. Run it once to fill cache, then try rerunning or refreshing the cache. 6. See error. ### Expected results The chart to load correctly. ### Actual results Chart fails to load, it appears the frontend only receives the results for the first query. #### Screenshots If applicable, add screenshots to help explain your problem. ### Environment (please complete the following information): - browser type and version: Firefox 93.0 and Chromium 94.0.4606.81 - superset version: 1.3.1 - python version: 3.8 - node.js version: v14.18.1 - any feature flags active: GLOBAL_ASYNC_QUERIES ### Checklist Make sure to follow these steps before submitting your issue - thank you! - [x] I have checked the superset logs for python stacktraces and included it here as text if there are any. - [x] I have reproduced the issue with at least the latest released version of superset. - [x] I have checked the issue tracker for the same issue and I haven't found one similar. ### Additional context Chart was working in 1.2.0 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
