You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "kz930 (via GitHub)" <gi...@apache.org> on 2026/09/28 20:39:30 UTC

[I] Should a table with no rows keep its declared schema? [texera]

kz930 opened a new issue, #8735:
URL: https://github.com/apache/texera/issues/8735

   ### Feature Summary
   
   When a port finishes with no rows, a Python table operator gets a DataFrame with no columns. Any operator that names a column then fails, so a Sort after a Filter that matched nothing fails the whole run. #8487 has the reproduction.
   
   #8487 was closed so it would not hold up unrelated work, and the question itself was left open. One view is that a table with no rows carries no schema by design. Another is that a table with no data can still be a real table, like a filter that matched nothing or a file with only a header, and its schema is information worth saving. This choice decides what every table operator sees on an empty input, so I'd like to hear from others before writing any code.
   
   ### Proposed Solution or Design
   
   Three options, none picked yet:
   
   1. Keep today's behavior. A port with no rows reaches the operator with no columns, and an operator that names a column fails.
   2. The engine skips `process_table` for a port with no rows and finishes it quietly.
   3. The operator gets the port's declared columns with no rows under them. #8488 did this and was closed.
   
   ### Affected Area
   
   Workflow Engine (Amber)
   


-- 
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: notifications-unsubscribe@texera.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Should a table with no rows keep its declared schema? [texera]

Posted by "chenlica (via GitHub)" <gi...@apache.org>.
chenlica commented on issue #8735:
URL: https://github.com/apache/texera/issues/8735#issuecomment-5882226779

   I also support design 3.  In addition, I hope the frontend can show a table without any records.


-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Should a table with no rows keep its declared schema? [texera]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #8735:
URL: https://github.com/apache/texera/issues/8735#issuecomment-5878093897

   <!-- texera:template-compliance -->
   👋 Thanks for opening this issue, @kz930!
   
   It looks like the issue description doesn't quite follow our template yet:
   
   - This issue doesn't appear to use one of our templates (Bug, Feature, or Task). Please open it using a template so the required details are captured.
   
   Filling out the template helps reviewers understand and triage your contribution faster. Please edit the description to complete it. This message will disappear automatically once the template is followed.
   
   You can find the template prompts by editing the description, or see [CONTRIBUTING.md](https://github.com/apache/texera/blob/main/CONTRIBUTING.md) for the full contribution flow.
   


-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Should a table with no rows keep its declared schema? [texera]

Posted by "aglinxinyuan (via GitHub)" <gi...@apache.org>.
aglinxinyuan closed issue #8735: Should a table with no rows keep its declared schema?
URL: https://github.com/apache/texera/issues/8735


-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Should a table with no rows keep its declared schema? [texera]

Posted by "aicam (via GitHub)" <gi...@apache.org>.
aicam commented on issue #8735:
URL: https://github.com/apache/texera/issues/8735#issuecomment-5879452205

   I agree with 3. The schema is used to compile workflow. Many features of the system rely on the schema, therefore I agree that schema should be preserved in any case including empty.


-- 
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: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org