Mahlet-Inc / Mahlet-Inc/hobbits

Kaitai Struct parsed output table missing 'value' column for some KSY files

Open
#155 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
751
Forks
49
PR merge metrics
No merged PRs in 30d

Description

Take this ksy for example:
```yaml
meta:
id: test
seq:
- id: test
type: test
types:
test:
seq:
- id: t
type: u1
```
The parsed output table only contains columns 1 and 2, not the third 'value' column.
![image](https://user-images.githubusercontent.com/12838439/203440660-035de5b9-25c0-457f-82b7-250b828119be.png)

Modifying the ksy by adding a field which uses a builtin type at the start of the sequence fixes the issue
```yaml
meta:
id: test
seq:
- id: test1
type: u1
- id: test
type: test
types:
test:
seq:
- id: t
type: u1
```
![image](https://user-images.githubusercontent.com/12838439/203440585-c24bd771-3839-4b8a-bd90-fb2793c1327c.png)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the missing-column behavior with the first KSY example, then compare it with the modified example that includes a builtin field. Trace the parsed output table entry point and determine why the value column is omitted; done means both examples display columns 1, 2, and value.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.