Mikhail Spirin
07/05/2023, 12:29 PM{
"str1": 970089079,
"str2": 1688400374,
"str3": {
"str4": {
"column1": {
grouped_column2: 1,
grouped_column2: 1,
....
}
}
}
}
my approaches are in thread below…Mikhail Spirin
07/05/2023, 12:29 PM"column1": {
grouped_column2: 1,
grouped_column2: 1,
....
}
What am i missing? Is there any good information how to define and select such complicated nested object with FLINK SQL?Alexey Novakov
07/05/2023, 12:50 PMAlexey Novakov
07/05/2023, 12:52 PMselect "a" as str1, "b" as str2,
ROW(
ROW (
ROW(
1, 1
)
)
) as str3 from sourceTableMikhail Spirin
07/05/2023, 1:27 PM"column1": {
id1: '1',
id2: '1',
....
}
?
Within one grouped window, i have single “column1" value and several ids - id1, id2, … . All of them should be keys with constant value ‘1’
I tried this:
SELECT
a,
b,
(
[column1,
[ id?, '1' ]
]
) as str3
But it says that ‘id’ should be grouped, which is definitely not what i want. I struggle finding any real examples of using MAP for nested structuresAlexey Novakov
07/06/2023, 10:05 AM