-
Notifications
You must be signed in to change notification settings - Fork 72
Map unfold #1097
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
Map unfold #1097
Conversation
@@ -69,6 +76,7 @@ internal val KClass<*>.isValueType: Boolean | |||
this in valueTypes || | |||
this.isSubclassOf(Number::class) || | |||
this.isSubclassOf(Enum::class) || | |||
this.isSubclassOf(Map::class) || |
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.
This is not consistent with plugin - here it's all subclasses, in plugin only Map and MutableMap specifically. Which one should it be?
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.
I would do it like the plugin. There are many classes that have List
or Map
as supertype but they should probably be treated like a normal class.
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.
Only Map
and MutableMap
. Fixed.
@@ -58,6 +58,13 @@ private val valueTypes = setOf( | |||
kotlinx.datetime.DateTimeUnit::class, | |||
) | |||
|
|||
/** | |||
* Check |
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.
check what? ;P
) | ||
|
||
/** | ||
* Check | ||
*/ |
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.
very clean solution :)
Fixes #896.
Now
Map
is treated like value class and not unfolded. Also fix unfolding behavior inunfold
(now it's the same as intoDataFrame()
)