cxzl25 opened a new pull request #1674:
URL: https://github.com/apache/hudi/pull/1674


   ## What is the purpose of the pull request
   
   When hoodie.embed.timeline.server = true, the written table is a 
non-partitioned table, will get an exception.
   ```java
   io.javalin.BadRequestResponse: Query parameter 'partition' with value '' 
cannot be null or empty
        at io.javalin.validation.TypedValidator.getOrThrow(Validator.kt:25)
        at 
org.apache.hudi.timeline.service.FileSystemViewHandler.lambda$registerDataFilesAPI$3(FileSystemViewHandler.java:172)
   ```
   Because api checks whether the value of partition is null or empty.
   ```java
   
ctx.validatedQueryParam(RemoteHoodieTableFileSystemView.PARTITION_PARAM).getOrThrow()
   ```
   
   ## Brief change log
     RemoteHoodieTableFileSystemView supports non-partitioned table queries
   
   
   ## Verify this pull request
     Manually verified the change by running a job locally
   
   ## 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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to