Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support complex data types #231

Closed
ismailsimsek opened this issue Sep 8, 2023 · 0 comments · Fixed by #233
Closed

Support complex data types #231

ismailsimsek opened this issue Sep 8, 2023 · 0 comments · Fixed by #233
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@ismailsimsek
Copy link
Member

currently complex types are not supported, like map, list[struct]. Add support to complex data types

here:

case "array":
JsonNode items = jsonSchemaFieldNode.get("items");
if (items != null && items.has("type")) {
String listItemType = items.get("type").textValue();
if (listItemType.equals("struct") || listItemType.equals("array") || listItemType.equals("map")) {
throw new RuntimeException("Complex nested array types are not supported," + " array[" + listItemType + "], field " + fieldName);
}

and here

case "map":
throw new RuntimeException("'" + fieldName + "' has Map type, Map type not supported!");
//break;

@ismailsimsek ismailsimsek added enhancement New feature or request help wanted Extra attention is needed labels Sep 8, 2023
@ismailsimsek ismailsimsek changed the title Add support to complex data types Support complex data types Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant