fixed InvalidOperationError bug#418
Open
smartbackwards wants to merge 1 commit intopnxenopoulos:mainfrom
Open
Conversation
Collaborator
|
Here is the entire stack trace of the error I am seeing when I am trying to parse the same demo with the If the issue gets fixed simply by just ordering the df by ticks column before returning, then it seems to be simple enough to fix. However, I think it would be ideal to really know why this error is popping up. Regardless this PR looks good to me, but I'll let @pnxenopoulos have a chance to give his thoughts as well. |
JanEricNitschke
approved these changes
Jul 1, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
issue was found trying to access any dataframe from map 1 of https://www.hltv.org/matches/2380994/betboom-vs-og-pgl-astana-2025-europe-closed-qualifier
``C:\Users\username\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\polars\lazyframe\frame.py", line 2332, in collect return wrap_df(ldf.collect(engine, callback)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ polars.exceptions.InvalidOperationError: argument in operation 'asof_join' is not sorted, please sort the 'expr/series/column' first
was raised probably due to the tick column not being out of order
issue was fixed when I tested the change in a clean venv