puchengy commented on PR #41332: URL: https://github.com/apache/spark/pull/41332#issuecomment-1581471186
@cloud-fan Hi, thanks for the suggestion. > We need to carefully do a reverse of DateTimeUtils.stringToDate, which is hard to get right. Is this the right way to solve the problem? To have a reverse of `stringToDate` function called `DateToPossibleStrings`. Then instead of having `Literal.create(date.toString, StringType)`, have a bunch of expression and OR them together. The expression will look like `Literal.create(possibleString_1, StringType) or Literal.create(possibleString_2, StringType) ...` Thanks -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
