Error

[INCOMPATIBLE_COLUMN_TYPE] UNION can only be performed on tables with compatible column types. The first column of the second table is "STRUCT, dimensions: ARRAY>" type which is not compatible with "STRING" at the same column of the first table..; 'Union false, false :- Project [lsaCycleName#602 AS nxcals_value#609, __sys_nxcals_entity_id__#604L AS nxcals_entity_id#610L, __record_timestamp__#603L AS nxcals_timestamp#611L, lsaCycleName AS nxcals_field_name#612] : +- Filter ((((entityKey#601 >= 0__1614174__7453831636854775807) AND (entityKey#601 < 0__1614174__7453917976854781808)) OR ((entityKey#601 >= 1__1614174__7453831636854775807) AND (entityKey#601 < 1__1614174__7453917976854781808))) OR (((entityKey#601 >= 2__1614174__7453831636854775807) AND (entityKey#601 < 2__1614174__7453917976854781808)) OR ((entityKey#601 >= 3__1614174__7453831636854775807) AND (entityKey#601 < 3__1614174__7453917976854781808)))) : +- Project [cast(entityKey#589 as string) AS entityKey#601, cast(lsaCycleName#590 as string) AS lsaCycleName#602, cast(__record_timestamp__#591L as bigint) AS __record_timestamp__#603L, cast(__sys_nxcals_entity_id__#592L as bigint) AS __sys_nxcals_entity_id__#604L] ...

Details

    Traceback (most recent call last):
  File "/opt/acc-bpt/release_2026_01/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_2026_01/acc_bpt/shared/BptV2.py", line 315, in build
    raise ex
  File "/opt/acc-bpt/release_2026_01/acc_bpt/shared/BptV2.py", line 284, in build
    rawdata = self.bptStatic.fetch(vars, times)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/acc-bpt/release_2026_01/acc_bpt/linac4/RF/PER_RING/shared/script_ln4_rfq.py", line 66, in fetch
    res = self.nxcals.fetch_vars_list(time_ranges[0], time_ranges[1], vars_list=var_defs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/acc-bpt/release_2026_01/acc_bpt/shared/utils_nxcals.py", line 385, in fetch_vars_list
    return self._fetch_vars_of_same_type(ts1, ts2, vars_like=None, vars_list=vars_list, acc_name=acc_name,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/acc-bpt/release_2026_01/acc_bpt/shared/utils_nxcals.py", line 436, in _fetch_vars_of_same_type
    sdfs = self._get_vars_raw(nxcals_query, vars_like, vars_list, system)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/acc-bpt/release_2026_01/acc_bpt/shared/utils_nxcals.py", line 452, in _get_vars_raw
    return nxcals_query._get_varslist_raw(vars_list, system)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/acc-bpt/release_2026_01/acc_bpt/shared/utils_nxcals_queries.py", line 185, in _get_varslist_raw
    .buildDataset() \
     ^^^^^^^^^^^^^^
  File "/opt/acc-bpt/release_2026_01/venv/lib/python3.11/site-packages/nxcals/api/extraction/data/common.py", line 111, in buildDataset
    return self.build()
           ^^^^^^^^^^^^
  File "/opt/acc-bpt/release_2026_01/venv/lib/python3.11/site-packages/nxcals/api/extraction/data/common.py", line 114, in build
    return self._builder._build()
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/acc-bpt/release_2026_01/venv/lib/python3.11/site-packages/nxcals/api/extraction/data/builders.py", line 33, in _build
    df = self._get_java_builder().build()
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/acc-bpt/release_2026_01/venv/lib/python3.11/site-packages/py4j/java_gateway.py", line 1322, in __call__
    return_value = get_return_value(
                   ^^^^^^^^^^^^^^^^^
  File "/opt/acc-bpt/release_2026_01/venv/lib/python3.11/site-packages/pyspark/errors/exceptions/captured.py", line 185, in deco
    raise converted from None
pyspark.errors.exceptions.captured.AnalysisException: [INCOMPATIBLE_COLUMN_TYPE] UNION can only be performed on tables with compatible column types. The first column of the second table is "STRUCT, dimensions: ARRAY>" type which is not compatible with "STRING" at the same column of the first table..;
'Union false, false
:- Project [lsaCycleName#602 AS nxcals_value#609, __sys_nxcals_entity_id__#604L AS nxcals_entity_id#610L, __record_timestamp__#603L AS nxcals_timestamp#611L, lsaCycleName AS nxcals_field_name#612]
:  +- Filter ((((entityKey#601 >= 0__1614174__7453831636854775807) AND (entityKey#601 < 0__1614174__7453917976854781808)) OR ((entityKey#601 >= 1__1614174__7453831636854775807) AND (entityKey#601 < 1__1614174__7453917976854781808))) OR (((entityKey#601 >= 2__1614174__7453831636854775807) AND (entityKey#601 < 2__1614174__7453917976854781808)) OR ((entityKey#601 >= 3__1614174__7453831636854775807) AND (entityKey#601 < 3__1614174__7453917976854781808))))
:     +- Project [cast(entityKey#589 as string) AS entityKey#601, cast(lsaCycleName#590 as string) AS lsaCycleName#602, cast(__record_timestamp__#591L as bigint) AS __record_timestamp__#603L, cast(__sys_nxcals_entity_id__#592L as bigint) AS __sys_nxcals_entity_id__#604L]
:        +- Relation [entityKey#589,lsaCycleName#590,__record_timestamp__#591L,__sys_nxcals_entity_id__#592L] HBaseRelation(Map(catalog -> {"table": {"namespace": "nxcals_pro", "name":"2__15291__647497"},"rowkey":"id","columns":{"entityKey":{"cf":"rowkey","col":"id","type":"string"},"lsaCycleName":{"cf":"data","col":"lsaCycleName","type":"string"},"__record_timestamp__":{"cf":"data","col":"__record_timestamp__","type":"long"},"__sys_nxcals_entity_id__":{"cf":"data","col":"__sys_nxcals_entity_id__","type":"long"}}}),None)
+- Project [means#635 AS nxcals_value#642, __sys_nxcals_entity_id__#637L AS nxcals_entity_id#643L, __record_timestamp__#636L AS nxcals_timestamp#644L, means AS nxcals_field_name#645]
   +- Filter (((((entityKey#633 >= 0__9155517__7453831636854775807) AND (entityKey#633 < 0__9155517__7453917976854781808)) OR ((entityKey#633 >= 1__9155517__7453831636854775807) AND (entityKey#633 < 1__9155517__7453917976854781808))) OR (((entityKey#633 >= 2__9155517__7453831636854775807) AND (entityKey#633 < 2__9155517__7453917976854781808)) OR ((entityKey#633 >= 3__9155517__7453831636854775807) AND (entityKey#633 < 3__9155517__7453917976854781808)))) OR ((((entityKey#633 >= 0__9157484__7453831636854775807) AND (entityKey#633 < 0__9157484__7453917976854781808)) OR ((entityKey#633 >= 1__9157484__7453831636854775807) AND (entityKey#633 < 1__9157484__7453917976854781808))) OR (((entityKey#633 >= 2__9157484__7453831636854775807) AND (entityKey#633 < 2__9157484__7453917976854781808)) OR ((entityKey#633 >= 3__9157484__7453831636854775807) AND (entityKey#633 < 3__9157484__7453917976854781808)))))
      +- Project [cast(entityKey#621 as string) AS entityKey#633, cast(cast(means#622 as struct,dimensions:array>) as struct,dimensions:array>) AS means#635, cast(__record_timestamp__#623L as bigint) AS __record_timestamp__#636L, cast(__sys_nxcals_entity_id__#624L as bigint) AS __sys_nxcals_entity_id__#637L]
         +- Relation [entityKey#621,means#622,__record_timestamp__#623L,__sys_nxcals_entity_id__#624L] HBaseRelation(Map(catalog -> {"table": {"namespace": "nxcals_pro", "name":"2__48221__536503"},"rowkey":"id","columns":{"entityKey":{"cf":"rowkey","col":"id","type":"string"},"means":{"cf":"data","col":"means","avro":"2__48221__536503__nxcals_value"},"__record_timestamp__":{"cf":"data","col":"__record_timestamp__","type":"long"},"__sys_nxcals_entity_id__":{"cf":"data","col":"__sys_nxcals_entity_id__","type":"long"}}}, 2__48221__536503__nxcals_value -> [{"type":"record","name":"double_multi_array","namespace":"cern.nxcals","fields":[{"name":"elements","type":[{"type":"array","items":"double"},"null"]},{"name":"dimensions","type":[{"type":"array","items":"int"},"null"]}]},"null"]),None)


    

Generated 2026-01-27 20:01:39.714764+01:00