-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSV Output Broken #55
Comments
it looks like there is a problem with csv output in the latest commit your command seems to work with cryo v0.2.0 |
The error comes from polars csv writer: |
I can confirm command above works when I remove the |
this probably means that the |
Hi i'm able to reproduce the error. Looks like My debug statements on the dataframe:
Shows this:
If i remove
If you must use |
The problem comes from the fact that this code cryo/crates/cli/src/parse/query.rs Lines 91 to 133 in d918f14
u256 encoding options (or default of a trio string,binary,f64 ) and pass it to create a table schema without checking whether output file type supports specific encoding.
This raises a couple of questions that I have about the introduction of
A backward compatible way would be to have:
|
Actually the simplest fix seems to be modifying the u256 macro to check for global column encoding (#57). The other questions about u256 design remain, but they actually belong to a different discussion. |
these are good questions. the current solution is an attempt at an optimal compromise between the constraints below
what do you think? |
proposed changes
|
Those sound good, I'm not sure about |
I believe this issue should be re-opened @sslivkoff . I tried the following command (exporting to CSV) and still received an error (I'm using branch
|
Not sure if this is the right forum, hopefully it is.
I'm just getting startedwith Cryo and want to download a set of transactions, for ex, all txs between blocks 17042712:17042714 . I tried this with 2 differente RPCs for ETH Mainnet (Infura, Quicknode) and using both I see the error below.
Input much appreciated.
The text was updated successfully, but these errors were encountered: