Jackeyzhe commented on issue #2071:
URL: https://github.com/apache/fluss/issues/2071#issuecomment-3707603146

   @wuchong @loserwang1024 Is there anyone work on this? if not, I'd like to 
add tests for this issue.
   I plan to add a test in `TabletServiceITCase`, and follow this steps
   1. create table and add data
   2. add array column with `DATA4_SCHEMA` and produce data
   ``` java
   public static final Schema DATA4_SCHEMA =
           Schema.newBuilder()
                   .column("a", DataTypes.INT())
                   .withComment("a is first column")
                   .column("b", DataTypes.STRING())
                   .withComment("b is second column")
                   .column("c", DataTypes.ARRAY(DataTypes.INT()))
                   .withComment("c is adding array column")
                   .primaryKey("a")
                   .build();
   ```
   3. check if it can fetch only third field success
   4. add row column with `DATA5_SCHEMA` and produce data
   ``` java
   public static final Schema DATA5_SCHEMA =
           Schema.newBuilder()
                   .column("a", DataTypes.INT())
                   .withComment("a is first column")
                   .column("b", DataTypes.STRING())
                   .withComment("b is second column")
                   .column("c", DataTypes.ARRAY(DataTypes.INT()))
                   .withComment("c is adding array column")
                   .column(
                           "d",
                           DataTypes.ROW(
                                   DataTypes.FIELD("r1", DataTypes.INT()),
                                   DataTypes.FIELD("r2", DataTypes.STRING())))
                   .withComment("d is adding nested row column")
                   .primaryKey("a")
                   .build();
   ```
   6. check if it can fetch only fourth field success


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to