我有一个非常复杂的查询,它提取一些数据。结果集如下所示:
mon | tue | wed | thu | fri | sat | sun | dispatch | driver_id | name | phone
x | x | x | x | x | data | x | 1 | 2 | Bob | 123
x | data | x | x | x | x | x | 1 | 2 | Bob | 123
x | x | x | data | x
我从Server提取了excel中的以下数据:
category label value
A green 2
A red 1
A blue 4
B green 0
B red 3
B blue 2
如何将其转换为如下(最好是在power查询中)?
category green red blue
A 2 1 4
B 0 3 2
我正在尝试与Databricks进行合并,但我得到了错误:
UnsupportedOperationException: Cannot perform Merge as multiple source rows matched and attempted to modify the same
target row in the Delta table in possibly conflicting ways.
我已经多次看到这个问题,并且我理解,如果源数据集的多行匹配和合并尝试更新目标Delta表的相同行,合并操作可能会失败。
简单地说,当源表有多个试图更新同一目标行的行时,就会发生这种情况。