{"record":{"id":"8edb1ef2c5c4c617","repo":"apache/iceberg","slug":"this-getclass-getname-doesn-t-implement-ca","errorCode":null,"errorMessage":"this.getClass().getName() + \" doesn't implement caseSensitive\"","messagePattern":"this\\.getClass\\(\\)\\.getName\\(\\) \\+ \" doesn't implement caseSensitive\"","errorType":"exception","errorClass":"UnsupportedOperationException","httpStatus":null,"severity":"error","filePath":"api/src/main/java/org/apache/iceberg/SortOrderBuilder.java","lineNumber":114,"sourceCode":"  }\n\n  /**\n   * Add an expression term to the sort, descending with the given null order.\n   *\n   * @param term an expression term\n   * @param nullOrder a null order (first or last)\n   * @return this for method chaining\n   */\n  R desc(Term term, NullOrder nullOrder);\n\n  /**\n   * Set case sensitivity of sort column name resolution.\n   *\n   * @param caseSensitive when true, column name resolution is case-sensitive\n   * @return this for method chaining\n   */\n  default R caseSensitive(boolean caseSensitive) {\n    throw new UnsupportedOperationException(\n        this.getClass().getName() + \" doesn't implement caseSensitive\");\n  }\n}\n","sourceCodeStart":96,"sourceCodeEnd":118,"githubUrl":"https://github.com/apache/iceberg/blob/86d9c8fc543e7c56c9f624eb725f76c9baff9570/api/src/main/java/org/apache/iceberg/SortOrderBuilder.java#L96-L118","documentation":"Default-interface guard on SortOrderBuilder: thrown when caseSensitive(boolean) is called on a builder that did not override it, so case-insensitive sort column name resolution is unavailable. The %s names the offending runtime builder class; the boolean argument is irrelevant to the failure.","triggerScenarios":"Thrown at api/src/main/java/org/apache/iceberg/SortOrderBuilder.java:114 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use exact-match column names so case sensitivity does not matter","Catch UnsupportedOperationException and keep the default case-sensitive resolution","Implement caseSensitive in the custom sort builder"],"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"}