Skip to content

Conversation

@keepConcentration
Copy link
Contributor

What changes were proposed in this pull request?

This PR updates the ParseType class to support parsing of nested complex types (e.g. list(list(integer)), map(string,list(integer))).

Why are the changes needed?

Currently, the CLI only supports simple types or single-level lists/maps.
It fails for more complex definitions like list(list(integer)) or map(string,list(integer)).

Fix: #8159

Does this PR introduce any user-facing change?

Users can now define more complex schemas in the CLI, such as:

  • list(list(integer))
  • map(string,list(integer))

How was this patch tested?

  • Added new unit tests:
    • testParseTypeNestedList
    • testParseTypeMapWithNestedValue
  • Executed existing unit tests

Copy link
Member

@justinmclean justinmclean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing that.

@justinmclean justinmclean merged commit 5178f5c into apache:main Aug 21, 2025
27 checks passed
diqiu50 pushed a commit to diqiu50/gravitino that referenced this pull request Sep 15, 2025
… for support more complex types (apache#8227)

### What changes were proposed in this pull request?

This PR updates the `ParseType` class to support parsing of nested
complex types (e.g. `list(list(integer))`, `map(string,list(integer))`).

### Why are the changes needed?

Currently, the CLI only supports simple types or single-level
lists/maps.
It fails for more complex definitions like `list(list(integer))` or
`map(string,list(integer))`.

Fix: apache#8159

### Does this PR introduce _any_ user-facing change?

Users can now define more complex schemas in the CLI, such as:
- `list(list(integer))`
- `map(string,list(integer))`

### How was this patch tested?

- Added new unit tests:
  - `testParseTypeNestedList`
  - `testParseTypeMapWithNestedValue`
- Executed existing unit tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Improvement] Extend CLI parsing to support more complex types

2 participants