{"record":{"id":"fd62bd0dd357f708","repo":"apache/iceberg","slug":"casesensitive-is-not-supported","errorCode":null,"errorMessage":"caseSensitive is not supported","messagePattern":"caseSensitive is not supported","errorType":"exception","errorClass":"UnsupportedOperationException","httpStatus":null,"severity":"error","filePath":"api/src/main/java/org/apache/iceberg/PartitionStatisticsScan.java","lineNumber":53,"sourceCode":"\n  /**\n   * Create a new scan from the results of this, where partitions are filtered by the {@link\n   * Expression}.\n   *\n   * @param filter a filter expression\n   * @return a new scan based on this with results filtered by the expression\n   */\n  PartitionStatisticsScan filter(Expression filter);\n\n  /**\n   * Create a new scan from this that will configure whether column name matches in filter\n   * expressions are case-sensitive. Default is true.\n   *\n   * @param caseSensitive whether column name matches in filter expressions should be case-sensitive\n   * @return a new scan based on this with the given case sensitivity\n   */\n  default PartitionStatisticsScan caseSensitive(boolean caseSensitive) {\n    throw new UnsupportedOperationException(\"caseSensitive is not supported\");\n  }\n\n  /**\n   * Create a new scan from this with the schema as its projection.\n   *\n   * @param schema a projection schema\n   * @return a new scan based on this with the given projection\n   */\n  PartitionStatisticsScan project(Schema schema);\n\n  /**\n   * Scans a partition statistics file belonging to a particular snapshot\n   *\n   * @return an Iterable of partition statistics\n   */\n  CloseableIterable<PartitionStatistics> scan();\n}\n","sourceCodeStart":35,"sourceCodeEnd":71,"githubUrl":"https://github.com/apache/iceberg/blob/86d9c8fc543e7c56c9f624eb725f76c9baff9570/api/src/main/java/org/apache/iceberg/PartitionStatisticsScan.java#L35-L71","documentation":"Default-interface guard on PartitionStatisticsScan: thrown when caseSensitive(boolean) is called on a scan implementation that did not override it, so toggling case sensitivity of partition-statistics filters is unsupported for that class. The message names no class but the condition is purely about the implementation's capabilities.","triggerScenarios":"Thrown at api/src/main/java/org/apache/iceberg/PartitionStatisticsScan.java:53 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use column names in filter expressions that match exactly, avoiding the need for case-insensitive matching","Catch UnsupportedOperationException and proceed with the default case-sensitive behavior","Implement caseSensitive in the custom scan class"],"exampleFix":null,"handlingStrategy":"type-guard","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"86d9c8fc543e7c56c9f624eb725f76c9baff9570","analyzedAt":"2026-09-12T00:46:39.097Z","contentChangedAt":"2026-09-12T00:46:39.097Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}