-
Couldn't load subscription status.
- Fork 26
clean up alias name creation #71
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
Conversation
This takes us from `attributes -> Utf8(\"foo\")` to `attributes -> foo`
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #71 +/- ##
==========================================
- Coverage 83.02% 82.67% -0.36%
==========================================
Files 15 15
Lines 1143 1183 +40
Branches 1143 1183 +40
==========================================
+ Hits 949 978 +29
- Misses 132 141 +9
- Partials 62 64 +2 ☔ View full report in Codecov by Sentry. |
| #[derive(Debug, Clone, Copy)] | ||
| enum JsonOperator { | ||
| Arrow, | ||
| LongArrow, | ||
| Question, | ||
| } | ||
|
|
||
| impl TryFrom<&BinaryOperator> for JsonOperator { | ||
| type Error = DataFusionError; | ||
|
|
||
| fn try_from(op: &BinaryOperator) -> Result<Self> { | ||
| match op { | ||
| BinaryOperator::Arrow => Ok(JsonOperator::Arrow), | ||
| BinaryOperator::LongArrow => Ok(JsonOperator::LongArrow), | ||
| BinaryOperator::Question => Ok(JsonOperator::Question), | ||
| _ => Err(DataFusionError::Internal(format!( | ||
| "Unexpected operator {:?} in JSON function rewriter", | ||
| op | ||
| ))), | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the Error is never really used, so let's just make it trivial.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup was about to push that 🧠
This takes us from
attributes -> Utf8(\"foo\")toattributes -> foo