It works for the simple case but if the JSON is more complicated with nested fields or if the values are not all of the same type it throws the below error:
Mappify/kvgen does not support heterogeneous value types. All values in the input map must be of the same type. The field [field2] has a differing type [Utf8].
Does the “Extract” field function have capability to pick multiple fields from the complex type (JSON) instead of one by one?
It doesn’t currently handle multiple fields, but if you toggle the SQL window at the top you can see the syntax used. Perhaps you can generate the query programmatically?
Thanks Kelly, yes, generating programatically will work, it would be a good feature if Dremio can do this automatically for our less technical folks who might use it.