Skip to content

Conversation

@Kopilov
Copy link
Contributor

@Kopilov Kopilov commented Aug 29, 2022

Saving DataFrame in Arrow format, as is or per schema.

Warnings are muted by default, this may be changed after #147 resolving.

citiesDeserialized["is_capital"] shouldBe citiesExampleFrame["is_capital"]
citiesDeserialized["population"] shouldBe citiesExampleFrame["population"]
citiesDeserialized["area"] shouldBe citiesExampleFrame["area"]
citiesDeserialized["settled"].type() shouldBe typeOf<LocalDate>() // cities["settled"].type() refers to FlexibleTypeImpl(LocalDate..LocalDate?) and does not match typeOf<LocalDate>()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice catch, i think it should be fixed in readArrow later as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

FlexibleTypeImpl comes not from Arrow but from listOf(LocalDate.of()) in the sample generation.
What exactly do you want to fix?

@koperagen
Copy link
Collaborator

Wow, hi! That's a lot of work, thank you for the PR. I'll leave a couple of comments about the details, but right now i seem to lack general understanding, so i'll review it again a bit later.

What do you think about making possible warnings a sealed class with overloaded toString for default behaviour? So that you can access actual exception in conversion or DataColumn and KType, etc.

@koperagen koperagen merged commit d5023da into Kotlin:master Sep 16, 2022
@koperagen koperagen mentioned this pull request Sep 16, 2022
@koperagen
Copy link
Collaborator

koperagen commented Sep 16, 2022

Sorry, sorry :D I just kept this open while merging other PR and accidentally merged this. Can you re-open?

@Kopilov Kopilov deleted the arrow branch September 17, 2022 17:43
@Kopilov Kopilov mentioned this pull request Sep 17, 2022
@Kopilov
Copy link
Contributor Author

Kopilov commented Sep 17, 2022

It seems that this can not be reopened. Duplicated in #169 by cherry-picking the branch manually.

@Jolanrensen Jolanrensen added this to the 0.9.0 milestone Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants