-
Notifications
You must be signed in to change notification settings - Fork 319
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
Support DateType #420
Support DateType #420
Conversation
All, While this is being worked on, are there any work around to create a DataFrame with DateType columns populated with values? Thanks. |
@lawrencetvo The workaround is to create a string column with date representation, and use |
src/csharp/Microsoft.Spark.E2ETest/IpcTests/Sql/FunctionsTests.cs
Outdated
Show resolved
Hide resolved
src/csharp/Microsoft.Spark.E2ETest/IpcTests/Sql/SparkSessionTests.cs
Outdated
Show resolved
Hide resolved
src/csharp/Microsoft.Spark.E2ETest/UdfTests/UdfSimpleTypesTests.cs
Outdated
Show resolved
Hide resolved
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.
LGTM except one nit comment
This PR exposes
DateType
which will support one of theDataType
in #26. This PR will also fix #389 and #410. It provides theDateType
support as below:DataFrame.Collect()
forDateType
.CreateDataFrame
that takes inDate
. Please see examples as below.Date
and UDF that returnsDate
. Please see examples as below.