Alexey Sanko
09/23/2025, 8:45 PM{a: 1, b: {aa:2, bb:3, cc:4}}
I need in one query get aa, into another bb, etc.
Instead of creation 3 UDFs with extractAaFromMyJson, extractBbFromMyJson and extractCcFromMyJson with hardcoded full path, my first intention to create extractFromMyJson function with hardcoded first path part and second part defined as second argument leaveField . And call
extractFromMyJson(data, 'aa')
etc
Can usage of constant as UDF argument affect performance some way?Robert Raharjo
09/25/2025, 12:47 AMAlexey Sanko
09/26/2025, 4:13 PM