You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "timsaucer (via GitHub)" <gi...@apache.org> on 2026/01/11 15:30:45 UTC

[PR] Use explicit timer in unit test [datafusion-python]

timsaucer opened a new pull request, #1338:
URL: https://github.com/apache/datafusion-python/pull/1338

   # Which issue does this PR close?
   
   None but addresses the comment in https://github.com/apache/datafusion-python/pull/1337#issuecomment-3734632951
   
    # Rationale for this change
   
   The current unit test for keyboard interrupts uses a long running query. This moves over to a simple query that uses a timer to make it run for longer than the keyboard interrupt checks. This matters because we are getting differences in how long it takes for the long running unit test to return based on upstream updates. The desired behavior is just that the query takes a long time, so we do not want to be dependent on performance improvements upstream.
   
   # What changes are included in this PR?
   
   Adds a `slow_udf` that has a 2 second timeout in it.
   Uses this instead of a long running join.
   
   # Are there any user-facing changes?
   
   No, only a test is updated.


-- 
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: github-unsubscribe@datafusion.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] Use explicit timer in unit test [datafusion-python]

Posted by "timsaucer (via GitHub)" <gi...@apache.org>.
timsaucer commented on PR #1338:
URL: https://github.com/apache/datafusion-python/pull/1338#issuecomment-3734819127

   FYI @nuno-faria and @kosiew 


-- 
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: github-unsubscribe@datafusion.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] Use explicit timer in unit test [datafusion-python]

Posted by "timsaucer (via GitHub)" <gi...@apache.org>.
timsaucer commented on PR #1338:
URL: https://github.com/apache/datafusion-python/pull/1338#issuecomment-3735523264

   > @timsaucer I agree that it would be better to have something more deterministic. However, I think we still need a test to interrupt queries that continuously generate new batches, and therefore do not have the opportunity to check for interrupts ([#1337 (comment)](https://github.com/apache/datafusion-python/pull/1337#issuecomment-3735194349)). For example, a really long generator (`select * from generate_series(1, 1000000000000000000)`).
   
   This is a good point. I updated the unit test and combined them to check for fast/slow responses and either collect or stream.


-- 
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: github-unsubscribe@datafusion.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] Use explicit timer in unit test [datafusion-python]

Posted by "timsaucer (via GitHub)" <gi...@apache.org>.
timsaucer merged PR #1338:
URL: https://github.com/apache/datafusion-python/pull/1338


-- 
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: github-unsubscribe@datafusion.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] Use explicit timer in unit test [datafusion-python]

Posted by "nuno-faria (via GitHub)" <gi...@apache.org>.
nuno-faria commented on PR #1338:
URL: https://github.com/apache/datafusion-python/pull/1338#issuecomment-3735209394

   @timsaucer I agree that it would be better to have something more deterministic. However, I think we still need a test to interrupt queries that continuously generate new batches, and therefore do not have the opportunity to check for interrupts (https://github.com/apache/datafusion-python/pull/1337#issuecomment-3735194349).


-- 
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: github-unsubscribe@datafusion.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org