>From Peeyush Gupta <[email protected]>:

Attention is currently required from: Ritik Raj.

Peeyush Gupta has posted comments on this change by Ritik Raj. ( 
https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/20469?usp=email )

Change subject: [ASTERIXDB-3652][STO] Fixed column assembler issues
......................................................................


Patch Set 4:

(1 comment)

Patchset:

PS4:
can you check the following test case
```
  DROP DATAVERSE unulls IF EXISTS;
  CREATE DATAVERSE unulls;
  USE unulls;

  CREATE DATASET DS PRIMARY KEY (id_:uuid) autogenerated WITH {
    "storage-format": { "format": "column" }
  };

  UPSERT INTO DS({
    "id": 1,
    "uarr": [
      1,           -- int branch
      "test",      -- string branch
      [missing, missing, {}],     -- explicit missing using keyword
      null,        -- explicit null
      missing,     -- another explicit missing
      2,            -- int branch again
    {"a":1, "b":missing, "c":[missing], "d": {"x":missing}},
      {"a":1, "b":{"a1":missing}, "c":2, "d": missing}

    ]
  });

  UPSERT INTO DS({
    "id": 1,
    "uarr": [
      1,           -- int branch
      "test",      -- string branch
      [missing, missing, {}],     -- explicit missing using keyword
      null,        -- explicit null
      missing,     -- another explicit missing
      2,            -- int branch again
    {"a":1, "b":missing, "c":[missing], "d": {"x":null}},
      {"a":1, "b":{"a1":null}, "c":[null], "d": missing}

    ]
  });
  SELECT VALUE d
  FROM DS d
  ORDER BY d.id;
```

I am getting the following exception
```
15:23:34.137 [HttpExecutor(port:19001)-3] ERROR org.apache.asterix - 
java.lang.IllegalStateException: Corrupted string bytes: trying to access entry 
1 in a byte array of length 1
org.apache.hyracks.api.exceptions.HyracksDataException: 
java.lang.IllegalStateException: Corrupted string bytes: trying to access entry 
1 in a byte array of length 1
        at 
org.apache.hyracks.api.exceptions.HyracksDataException.create(HyracksDataException.java:70)
 ~[classes/:?]
        at 
org.apache.hyracks.api.util.ExceptionUtils.setNodeIds(ExceptionUtils.java:74) 
~[classes/:?]
        at org.apache.hyracks.control.nc.Task.run(Task.java:399) ~[classes/:?]
        at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
 ~[?:?]
        at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
 ~[?:?]
        at java.base/java.lang.Thread.run(Thread.java:1583) [?:?]
Caused by: java.lang.IllegalStateException: Corrupted string bytes: trying to 
access entry 1 in a byte array of length 1
        at 
org.apache.hyracks.util.encoding.VarLenIntEncoderDecoder.decode(VarLenIntEncoderDecoder.java:82)
 ~[classes/:?]
        at 
org.apache.hyracks.util.string.UTF8StringUtil.getUTFLength(UTF8StringUtil.java:226)
 ~[classes/:?]
        at 
org.apache.hyracks.data.std.primitive.UTF8StringPointable.afterReset(UTF8StringPointable.java:69)
 ~[classes/:?]
        at 
org.apache.hyracks.data.std.api.AbstractPointable.set(AbstractPointable.java:34)
 ~[classes/:?]
        at 
org.apache.hyracks.data.std.accessors.PointableBinaryHashFunctionFactory$1.hash(PointableBinaryHashFunctionFactory.java:46)
 ~[classes/:?]
        at 
org.apache.asterix.builders.RecordBuilder.addField(RecordBuilder.java:213) 
~[classes/:?]
        at 
org.apache.asterix.builders.RecordBuilder.addField(RecordBuilder.java:191) 
~[classes/:?]
        at 
org.apache.asterix.column.assembler.ObjectValueAssembler.addField(ObjectValueAssembler.java:129)
 ~[classes/:?]
```



--
To view, visit https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/20469?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://asterix-gerrit.ics.uci.edu/settings?usp=email

Gerrit-MessageType: comment
Gerrit-Project: asterixdb
Gerrit-Branch: ionic
Gerrit-Change-Id: I782d17f81d00210a4ca8673cc5fbcf556fc4758c
Gerrit-Change-Number: 20469
Gerrit-PatchSet: 4
Gerrit-Owner: Ritik Raj <[email protected]>
Gerrit-Reviewer: Anon. E. Moose #1000171
Gerrit-Reviewer: Jenkins <[email protected]>
Gerrit-Reviewer: Peeyush Gupta <[email protected]>
Gerrit-Reviewer: Ritik Raj <[email protected]>
Gerrit-CC: Wail Alkowaileet <[email protected]>
Gerrit-Attention: Ritik Raj <[email protected]>
Gerrit-Comment-Date: Tue, 21 Oct 2025 22:27:08 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No

Reply via email to