You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "clownxc (via GitHub)" <gi...@apache.org> on 2023/04/05 05:24:38 UTC

[GitHub] [flink] clownxc opened a new pull request, #22353: [FLINK-31320][table]Modify DATE_FORMAT system (built-in) function to accepts DATEs

clownxc opened a new pull request, #22353:
URL: https://github.com/apache/flink/pull/22353

   ## What is the purpose of the change
   
   The current DATE_FORMAT function only supports TIMESTAMPs. Ideally, it should be able to format DATE's as well as TIMESTAMPs.
    Like Spark  DATE_FORMAT
   ```
   Converts a date/timestamp/string to a value of string in the format specified by the date  format given by the second argument.
   ```
   
   ## Brief change log
   - Modify DATE_FORMAT system (built-in) function to accepts DATEs
   
   ```sql
   SELECT DATE_FORMAT(CURRENT_DATE, 'yyyy/MM/dd HH:mm:ss')
   ```
   ## Verifying this change
   This change added tests in TemporalTypesTest#testDateFormat
   
   ## Does this pull request potentially affect one of the following parts:
   Dependencies (does it add or upgrade a dependency): (no)
   The public API, i.e., is any changed class annotated with @Public(Evolving): (yes )
   The serializers: (no)
   The runtime per-record code paths (performance sensitive): (no)
   Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: ( no)
   The S3 file system connector: ( no)
   ## Documentation
   Does this pull request introduce a new feature? (yes)
   If yes, how is the feature documented? (docs)
   
   
   


-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [flink] clownxc commented on pull request #22353: [FLINK-31320][table]Modify DATE_FORMAT system (built-in) function to accepts DATEs

Posted by "clownxc (via GitHub)" <gi...@apache.org>.
clownxc commented on PR #22353:
URL: https://github.com/apache/flink/pull/22353#issuecomment-1536956546

   Could you please take a look when you have time? thanks a lot ! @liuyongvs  @snuyanzin 


-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [flink] flinkbot commented on pull request #22353: [FLINK-31320][table]Modify DATE_FORMAT system (built-in) function to accepts DATEs

Posted by "flinkbot (via GitHub)" <gi...@apache.org>.
flinkbot commented on PR #22353:
URL: https://github.com/apache/flink/pull/22353#issuecomment-1496937031

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "0161f9e216b37f8c47322b9dfad54522c569ea73",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "0161f9e216b37f8c47322b9dfad54522c569ea73",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 0161f9e216b37f8c47322b9dfad54522c569ea73 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [flink] clownxc commented on pull request #22353: [FLINK-31320][table]Modify DATE_FORMAT system (built-in) function to accepts DATEs

Posted by "clownxc (via GitHub)" <gi...@apache.org>.
clownxc commented on PR #22353:
URL: https://github.com/apache/flink/pull/22353#issuecomment-1501898847

   Could you please take a look when you have time? thanks a lot ! @luoyuxia 


-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org