The GitHub Actions job "Required Checks" on texera.git/main has failed.
Run started by GitHub user github-merge-queue[bot] (triggered by 
github-merge-queue[bot]).

Head commit for run:
55e179ab110439521a2775bc28ec42406111d864 / Xinyuan Lin <[email protected]>
refactor(amber, common): simplify tuple, Arrow, operator allocs (#9515)

### What changes were proposed in this PR?
Simplifies transient collection allocations, repeated traversals, and
redundant metadata/regex builds across `common/workflow-core`,
`common/workflow-operator`, and `amber` (**+316/-238** production lines;
**+611/-249** total including characterization tests), with no change to
observable behavior or generated code:

- **Tuple & Arrow conversion:** Checks `Schema` add/remove names against
the lowercase `attributeIndex` keys, hashes and compares `Tuple` fields
in place, walks attributes with one iterator in `Tuple.Builder` and
`SeqTupleLike.enforceSchema` instead of zipping or copying arrays, and
populates Arrow field arrays and schemas without extra temporary
collections in `ArrowUtils`. A `getTexeraTuple(rowIndex,
vectorSchemaRoot, schema)` overload takes an already converted schema,
so `PythonProxyServer` converts a root's Arrow schema once per Data put
and `ArrowSourceOpExec` once per file instead of once per row.
- **UI UDF parameter injection:** Validates and binds UI parameter
resources in single passes (`UiUdfParameterContract`,
`UdfUiParameterSupport`), replaces incremental `String.patch` edits and
duplicate AST field scans in `JavaUdfUiParameterInjector`, avoids line
splitting and pre-compiles the reserved hook regex in
`PythonUdfUiParameterInjector`, and formats sorted manifest entries via
`HexFormat` and a shared `formatEntries` helper in
`RUdfUiParameterInjector`.
- **Text & ML scorer operators:** Hoists dictionary stop-word sets and
skips unused literal rendering in conjunction mode
(`DictionaryMatcherOpDesc`, `DictionaryMatcherOpExec`), removes
intermediate wrappers in `CaseSensitiveAnalyzer`, `KeywordSearchOpDesc`,
and `KeywordSearchOpExec`, avoids leading regex flag list allocations in
`RegexOpDesc`, and streamlines column validation in
`MachineLearningScorerOpDesc`.

### Any related issues, documentation, discussions?
Closes #9514.
Closes #9521.

### How was this PR tested?
Characterization tests came first (`a347f3d946`, `1370fab8c2`), then the
cleanups and helper extractions (`eeb039181d`, `9efd195ade`,
`bcaa8684e5`, `73d6f66b1e`). On final `HEAD` (`73d6f66b1e`):

```bash
sbt "WorkflowCore/scalafmtCheck" "WorkflowCore/Test/scalafmtCheck" 
"WorkflowOperator/scalafmtCheck" "WorkflowOperator/Test/scalafmtCheck" 
"WorkflowExecutionService/scalafmtCheck" 
"WorkflowExecutionService/Test/scalafmtCheck" "WorkflowCore/scalafix --check" 
"WorkflowCore/Test/scalafix --check" "WorkflowOperator/scalafix --check" 
"WorkflowOperator/Test/scalafix --check" "WorkflowExecutionService/scalafix 
--check" "WorkflowExecutionService/Test/scalafix --check"
STORAGE_ICEBERG_CATALOG_TYPE=hadoop sbt "WorkflowCore/testOnly * -- -l 
org.apache.texera.common.tags.NonParallelTest"
UDF_PYTHON_PATH="<python3.12>" sbt "WorkflowOperator/testOnly 
org.apache.texera.amber.operator.dictionary.* 
org.apache.texera.amber.operator.keywordSearch.* 
org.apache.texera.amber.operator.machineLearning.Scorer.* 
org.apache.texera.amber.operator.regex.* org.apache.texera.amber.operator.udf.* 
org.apache.texera.amber.operator.source.scan.arrow.* 
org.apache.texera.amber.util.ArrowUtilsSpec"
STORAGE_ICEBERG_CATALOG_TYPE=hadoop UDF_PYTHON_PATH="<python3.12>" sbt 
"WorkflowExecutionService/testOnly 
org.apache.texera.amber.engine.architecture.sendsemantics.partitioners.PartitionersSpec
 org.apache.texera.amber.engine.common.storage.EmptyRecordStorageSpec 
org.apache.texera.amber.engine.common.storage.SequentialRecordStorageSpec 
org.apache.texera.amber.engine.common.storage.VFSRecordStorageSpec 
org.apache.texera.amber.engine.architecture.pythonworker.*"
```

- Format & Scalafix checks: all 6 `scalafmtCheck` and 6 `scalafix
--check` targets passed.
- `WorkflowCore` non-Docker suites (`-l
org.apache.texera.common.tags.NonParallelTest`): 54 suites completed,
712 succeeded, 0 failed, 1 pre-existing pending
(`PortIdentityKeyDeserializerSpec`'s `pendingUntilFixed` case).
- `WorkflowOperator` affected packages: 29 suites completed, 412
succeeded, 0 failed (including live Python 3.12 pandas/sklearn scoring
and regex checks).
- `WorkflowExecutionService` tuple/storage and Python proxy suites: 9
suites completed, 92 succeeded, 0 failed.

### Was this PR authored or co-authored using generative AI tooling?
Generated-by: Antigravity IDE (Gemini 3.8 Flash), Claude Code (Claude
Opus 5.5)

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

With regards,
GitHub Actions via GitBox

Reply via email to