The GitHub Actions job "Required Checks" on texera.git/main has succeeded.
Run started by GitHub user aglinxinyuan (triggered by aglinxinyuan).

Head commit for run:
5cf0e7b751353ac66905f6af9147cdfd368e021f / Yicong Huang 
<[email protected]>
test(amber): add unit tests for SleepOpDesc, IntersectOpDesc, URLFetcherOpDesc 
(#4816)

### What changes were proposed in this PR?

Adds scalatest coverage for three logical-operator descriptors that had
no dedicated specs:

- `sleep/SleepOpDesc` — operatorInfo (Sleep, Control group, 1 input + 1
output) and `getPhysicalOp` (non-parallelizable, single-worker,
SleepOpExec class wired in).
- `intersect/IntersectOpDesc` — operatorInfo (Intersect, Set group, 2
input ports with PortIdentity 0/1, blocking output) and `getPhysicalOp`
(HashPartition required on both inputs, derived HashPartition for any
input combination).
- `source/fetcher/URLFetcherOpDesc` — operatorInfo (URL Fetcher, API
group, source-shaped 0-in/1-out), `sourceSchema` (UTF-8 → STRING,
RAW_BYTES → ANY, null fallthrough → ANY), and `getPhysicalOp`
(URLFetcherOpExec class wired in).

### Any related issues, documentation, discussions?

Closes #4814.

Bug filed separately: `URLFetcherOpDesc.sourceSchema` silently falls
back to `ANY` when `decodingMethod` is left at its `null` default rather
than guarding non-null. Pinned in the spec as the current behavior.

Drive-by note (already filed as #4813):
`source/scan/json/JSONUtil.scala` is a byte-for-byte duplicate of
`workflow-core/util/JSONUtils.scala::JSONToMap`. Not adding a redundant
spec for it; its tests live with `JSONUtilsSpec` from #4716.

### How was this PR tested?

```
sbt scalafmtCheckAll
sbt "WorkflowOperator/testOnly 
org.apache.texera.amber.operator.sleep.SleepOpDescSpec 
org.apache.texera.amber.operator.intersect.IntersectOpDescSpec 
org.apache.texera.amber.operator.source.fetcher.URLFetcherOpDescSpec"
```

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (claude-opus-4-7)

---------

Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>

Report URL: https://github.com/apache/texera/actions/runs/25287924386

With regards,
GitHub Actions via GitBox

Reply via email to