apache / apache/texera

Align Python VFS resources with the wire format

Open
#8,237 1 comment 0 reactions 1 assignee Claimed by @carloea2 View on GitHub
Dominant language
Scala
Stars
314
Forks
187
Avg merge
1d 21h
Merged PRs (30d)
214

Description

### Feature Summary

The Python VFS resource enum does not match the lowercase resource suffixes written by Scala. Scala emits `runtimestatistics` and `consolemessages`, while Python stores `runtimeStatistics` and `consoleMessages`.

Before: Scala emits a lowercase suffix, Python normalizes it, and enum lookup fails.

After: the Python enum uses the shared lowercase wire values and lookup succeeds.

Reproduction on main:

```text
VFSResourceType("runtimestatistics") raises ValueError
VFSResourceType("consolemessages") raises ValueError
```

### Proposed Solution or Design

Align the two Python enum values with the Scala wire format. Keep the decoder normalization and test literal Scala-produced suffixes.

### Affected Area

Workflow Engine (Amber)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.