Skip to content
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

Merged
merged 1 commit into from
Sep 24, 2021
Merged

Conversation

yjshen
Copy link
Collaborator

@yjshen yjshen commented Sep 24, 2021

Which issue does this PR close?

Closes #.

Rationale for this change

What changes are included in this PR?

Are there any user-facing changes?

num_batches: u64,
num_rows: u64,
num_bytes: u64,
}

impl<'a> ShuffleWriter<'a> {
impl ShuffleWriter {
Copy link
Collaborator Author

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())
}
}

Copy link
Collaborator Author

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);
Copy link
Collaborator Author

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,
Copy link
Collaborator Author

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);
Copy link
Collaborator Author

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(),
},
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove duplicate patterns.

@houqp houqp merged commit e2c58c1 into houqp:arrow2-merge Sep 24, 2021
houqp pushed a commit that referenced this pull request Sep 24, 2021
@yjshen yjshen deleted the arrow2-merge-new branch April 22, 2022 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants