-
Notifications
You must be signed in to change notification settings - Fork 0
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
Make ballista compile #6
Conversation
num_batches: u64, | ||
num_rows: u64, | ||
num_bytes: u64, | ||
} | ||
|
||
impl<'a> ShuffleWriter<'a> { | ||
impl ShuffleWriter { |
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.
Please merge arrow2 master for the change of jorgecarleitao/arrow2@4c2f4dc
.map(|pos| self.values()[pos].borrow()) | ||
} | ||
} | ||
|
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.
As suggested by Jorge in jorgecarleitao/arrow2#416 (review)
}) | ||
.map_err(|e| from_ballista_err(&e))?; | ||
let file_meta = read_file_metadata(&mut file).map_err(|e| from_arrow_err(&e))?; | ||
let reader = FileReader::new(&mut file, file_meta, None); |
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.
Move file open as well as FileReader creation logic here for the lifetime requirements enforced by async move {...}
@@ -109,7 +109,7 @@ impl CsvFile { | |||
|
|||
/// Attempt to initialize a `CsvRead` from a reader impls `Seek`. The schema can be inferred automatically. | |||
pub fn try_new_from_reader_infer_schema<R: Read + Seek + Send + Sync + 'static>( | |||
mut reader: R, | |||
reader: R, |
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.
from clippy notes
// let a = Utf8Array::<i64>::from_slice(["abc"; 5]); | ||
// let b = Utf8Array::<i64>::from_slice(["^a", "^A", "(b|d)", "(B|D)", "^(b|c)"]); | ||
// let c = BooleanArray::from_slice(&[false, false, false, false, true]); | ||
// test_coercion!(a, b, Operator::RegexNotIMatch, c); |
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.
commented out for binary.rs RegexIMatch
not implemented
ScalarValue::IntervalYearMonth(e) => match e { | ||
Some(value) => dyn_to_array!(self, value, size, i32), | ||
None => new_null_array(self.get_datatype(), size).into(), | ||
}, |
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.
Remove duplicate patterns.
Which issue does this PR close?
Closes #.
Rationale for this change
What changes are included in this PR?
Are there any user-facing changes?