aglinxinyuan opened a new pull request, #5924:
URL: https://github.com/apache/texera/pull/5924

   ### What changes were proposed in this PR?
   
   Pin behavior of three previously-untested external-API source descriptors in 
`common/workflow-operator`. No production-code changes.
   
   | Spec | Source class | Tests |
   | --- | --- | --- |
   | `TwitterSearchSourceOpDescSpec` | `TwitterSearchSourceOpDesc` | 4 |
   | `TwitterFullArchiveSearchSourceOpDescSpec` | 
`TwitterFullArchiveSearchSourceOpDesc` | 4 |
   | `RedditSearchSourceOpDescSpec` | `RedditSearchSourceOpDesc` | 7 |
   
   **Behavior pinned**
   
   | Surface | Contract |
   | --- | --- |
   | `operatorInfo` | exact name + description; External API group; 0 inputs / 
1 output |
   | field defaults | runtime defaults (Twitter `limit` is `0` not the schema's 
`100`; query/credential fields `null`; `APIName` `Some(...)`; Reddit `limit` is 
`100`) |
   | `sourceSchema()` | Twitter's fixed 33-column tweet schema; Reddit's fixed 
17-column post schema (types pinned) |
   | `getOutputSchemas` | Reddit exposes its source schema keyed by the 
declared output port |
   | `generatePythonCode` | Reddit emits the PRAW source operator honoring the 
sorting method, and rejects missing credentials |
   | Round-trip | config fields preserved through the polymorphic `LogicalOp` 
base |
   
   Note: the Twitter source operators are `@deprecated` (no longer executable) 
but retained so legacy workflows still deserialize; those specs are annotated 
`@nowarn("cat=deprecation")` and pin that backward-compatible contract.
   
   ### Any related issues, documentation, discussions?
   
   Part of the ongoing `workflow-operator` unit-test coverage effort.
   
   ### How was this PR tested?
   
   - `sbt "WorkflowOperator/testOnly *TwitterSearchSourceOpDescSpec 
*TwitterFullArchiveSearchSourceOpDescSpec *RedditSearchSourceOpDescSpec"` — 15 
tests, all green
   - `sbt "WorkflowOperator/Test/scalafmtCheck"` and `sbt 
"WorkflowOperator/scalafixAll --check"` — clean
   - CI to confirm
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (Opus 4.8 [1M context])
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to