thswlsqls opened a new issue, #8606:
URL: https://github.com/apache/paimon/issues/8606

   **Search before asking**
   - [x] I searched in the [issues](https://github.com/apache/paimon/issues) 
and found nothing similar.
   
   **Paimon version**
   master @ 7e396cff8 / 2.0-SNAPSHOT
   
   **Compute Engine**
   Flink
   
   **Minimal reproduce step**
   Set `scan.partitions` on a non-partitioned Paimon lookup table, then trigger 
`PartitionLoader.of(table)` 
(`paimon-flink/paimon-flink-common/.../flink/lookup/PartitionLoader.java` line 
92-95).
   
   **What doesn't meet your expectations?**
   Expected error: `scan.partitions is not supported for non-partitioned table.`
   Actual error: `{} is not supported for non-partitioned table. 
[scan.partitions]` — the placeholder is left literal and the option key is 
appended in brackets.
   
   **Anything else?**
   `Preconditions.format()` (`paimon-api/.../utils/Preconditions.java`) matches 
only `%s`; unused args are appended as ` [arg]`. This is the only 
`checkArgument` message in the module using `{}`; every other one uses `%s`.
   
   **Are you willing to submit a PR?**
   - [x] I'm willing to submit a PR!
   


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