-
Notifications
You must be signed in to change notification settings - Fork 750
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
Improve ergonomics of parquet::basic::LogicalType
#1554
Comments
We could also change the variants to be upper camel case, as is more idiomatic in Rust code 🤔 |
+1. I think the new proposal looks cleaner. Also +1 on changing to CamelCase. |
Hi all, I've started implementing this. Would we want the string parser to also use CamelCase?
would be changed to
I originally came across this when starting to edit error messages, and wasn't sure if printing the enum's format or the string's format is more instructive to the user. Ex: |
The convention for expressing parquet schema appears to be SHOUTY CASE, I would therefore avoid making changes to the parser to not accept this. I suppose you might be able to make it case-insensitive, but I'm not sure if this is spec-compliant, we'd need to check 🤔 As for error messages, I think whatever is easiest. I personally prefer camel case as I don't like my error messages screaming at me, but the important thing is the meaning is clear 👍 |
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
LogicalType
is defined asWhere the inner structs are actually defined by
parquet_format
. This not only requires an additional crate in scope, but also a number of these are actually empty structs resulting in constructions likeDescribe the solution you'd like
I would like to change the signature to be instead
I would also like it to implement
Copy
Describe alternatives you've considered
We could leave the enumeration unchanged
The text was updated successfully, but these errors were encountered: