Skip to content

[Feature] Support for nested fields (Structs, Arrays and Maps)#152

Open
ejblanco wants to merge 1 commit intoStarRocks:mainfrom
ejblanco:star-fork
Open

[Feature] Support for nested fields (Structs, Arrays and Maps)#152
ejblanco wants to merge 1 commit intoStarRocks:mainfrom
ejblanco:star-fork

Conversation

@ejblanco
Copy link

@ejblanco ejblanco commented Feb 5, 2026

What type of PR is this:

  • BugFix
  • Feature
  • Enhancement
  • Refactor
  • UT
  • Doc
  • Tool

Which issues of this PR fixes :

Fixes #

Problem Summary(Required) :

We have added support for both reading and writing nested fields such as structs, arrays and maps in Starrocks.

Currenlty you have to pass the columnType when using it:

        String columnTypes = "iidentifier STRUCT<type STRING, phone BIGINT, datetime TIMESTAMP>, arr_col ARRAY<INT>, map_struct_col MAP<STRING, STRUCT<type STRING, phone BIGINT, datetime TIMESTAMP>>";
        df.write().format("starrocks")
              .option("starrocks.column.types", columnTypes)

We can work on it to improve anything needed

Checklist:

  • I have added test cases for my bug fix or my new feature
  • This pr will affect users' behaviors
  • This pr needs user documentation (for new or modified features or behaviors)
  • I have added documentation for my new feature or new function

@CelerData-Reviewer
Copy link

@codex review

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.

2 participants