stayrascal opened a new pull request #4917:
URL: https://github.com/apache/hudi/pull/4917


   ## *Tips*
   - *Thank you very much for contributing to Apache Hudi.*
   - *Please review https://hudi.apache.org/contribute/how-to-contribute before 
opening a pull request.*
   
   ## What is the purpose of the pull request
   
   * Fix NPE problem during search Flink builtin function `TO_DATE('xxx')` 
while enable `Hudi` catalog, because the original logic of 
`getPartition(ObjectPath tablePath, CatalogPartitionSpec catalogPartitionSpec)` 
is return null, which will caused NPE problem.
   * 
   
![image](https://user-images.githubusercontent.com/13775334/155873786-12a209b4-982e-4b27-b45f-901e596296a5.png)
   
   
   ## Brief change log
     - *Replace `null` with FunctionNotExistException of getFunction method in 
HoodieCatalog.java*
     - *Replace `null` with PartitionNotExistException of getPartition method 
in HoodieCatalog.java*
     - *Add a IT case to test get builtin function*
     - *Change `TableSchema` to `ResolveSchema` in ContinousFileSource.java*
   
   ## Verify this pull request
   
     - *Added integration tests(`testBuiltinFunctionWithCatalog`) in 
HoodieDataSourceITCase.java*
   
   ## Committer checklist
   
    - [ ] Has a corresponding JIRA in PR title & commit
    
    - [ ] Commit message is descriptive of the change
    
    - [ ] CI is green
   
    - [ ] Necessary doc changes done or have another open PR
          
    - [ ] For large changes, please consider breaking it into sub-tasks under 
an umbrella JIRA.
   


-- 
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]


Reply via email to