Error

[INVALID_EXTRACT_BASE_FIELD_TYPE] Can't extract a value from "CPS.TGM:DEST". Need a complex type [STRUCT, ARRAY, MAP] but got "STRING".

Details

    Traceback (most recent call last):
  File "/opt/acc-bpt/release_2024_11/jinja/build_static_plots.py", line 85, in _create_static_html_content
    output_html_file_path = driver.build(abs_plot_dest_file_html)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/acc-bpt/release_2024_11/acc_bpt/shared/BptV2.py", line 319, in build
    raise ex
  File "/opt/acc-bpt/release_2024_11/acc_bpt/shared/BptV2.py", line 288, in build
    rawdata = self.bptStatic.fetch(vars, times)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/acc-bpt/release_2024_11/acc_bpt/shared/utils_storage.py", line 158, in wrapper_incrementally_cached
    return FetchCacher.fetch_caching_logic(fetch_self=fetch_self, fetch_func=fetch_func,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/acc-bpt/release_2024_11/acc_bpt/shared/utils_storage.py", line 195, in fetch_caching_logic
    res_data = fetch_func(fetch_self, var_defs, time_ranges, True)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/acc-bpt/release_2024_11/acc_bpt/ps/shared/script_ps_intensity.py", line 172, in fetch
    data = data[(data["`CPS.TGM:DEST`"] == 'SPS_DUMP') |
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/acc-bpt/release_2024_11/venv/lib/python3.11/site-packages/pyspark/sql/dataframe.py", line 3081, in __getitem__
    return self.filter(item)
           ^^^^^^^^^^^^^^^^^
  File "/opt/acc-bpt/release_2024_11/venv/lib/python3.11/site-packages/pyspark/sql/dataframe.py", line 3329, in filter
    jdf = self._jdf.filter(condition._jc)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/acc-bpt/release_2024_11/venv/lib/python3.11/site-packages/py4j/java_gateway.py", line 1322, in __call__
    return_value = get_return_value(
                   ^^^^^^^^^^^^^^^^^
  File "/opt/acc-bpt/release_2024_11/venv/lib/python3.11/site-packages/pyspark/errors/exceptions/captured.py", line 185, in deco
    raise converted from None
pyspark.errors.exceptions.captured.AnalysisException: [INVALID_EXTRACT_BASE_FIELD_TYPE] Can't extract a value from "CPS.TGM:DEST". Need a complex type [STRUCT, ARRAY, MAP] but got "STRING".

    

Generated 2024-10-17 20:25:57.492669+02:00