Skip to content
This repository has been archived by the owner on Jan 11, 2021. It is now read-only.

Ergonomics: add .as_*() to ColumnWriter #213

Open
aldanor opened this issue Jan 6, 2021 · 1 comment
Open

Ergonomics: add .as_*() to ColumnWriter #213

aldanor opened this issue Jan 6, 2021 · 1 comment

Comments

@aldanor
Copy link

aldanor commented Jan 6, 2021

It might be nice to avoid tons of if let and match statements all over the place to add .as_*() methods to ColumnWriter, for example:

col_writer.as_double()?.write_batch(&data, None, None)?;
@aldanor
Copy link
Author

aldanor commented Jan 6, 2021

(This already exists as a separate function get_typed_column_writer_mut() or something like that - it's just it would be nice to have it as method; also that function panics instead of returning Result)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant