How to merge maps in PartiQL

Hello!

I want to transform

<<
  {
    'k1': 'v1',
    'k2': 'v2'
  },
  {
    'k3': 'v3',
    'k4': 'v4'
  }
>>

to

{
  'k1': 'v1',
  'k2': 'v2',
  'k3': 'v3',
  'k4': 'v4'
}

Do you know if it is possible in PartiQL?

I found a solution:

PartiQL> PIVOT sp.p at sp."s" from (SELECT s, p from [{'k1': 'v1', 'k2': 'v2'}, {'k3': 'v3', 'k4': 'v4', 'k5': 'v5'}, {'k6': 'v6'}] as c, unpivot c as p at s) sp
   |
==='
{
  'k1': 'v1',
  'k2': 'v2',
  'k3': 'v3',
  'k4': 'v4',
  'k5': 'v5',
  'k6': 'v6'
}
---