{"record":{"id":"a6b169c694559837","repo":"hibernate/hibernate-orm","slug":"summarization-is-not-supported-by-dbms-a6b169","errorCode":null,"errorMessage":"Summarization is not supported by DBMS","messagePattern":"Summarization is not supported by DBMS","errorType":"exception","errorClass":"UnsupportedOperationException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/dialect/sql/ast/HANASqlAstTranslator.java","lineNumber":310,"sourceCode":"\t\t\t\t\t\tappendSql( \" not like \" );\n\t\t\t\t\t\trhs.accept( this );\n\t\t\t\t\t\treturn;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t// Fall through\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\trenderComparisonStandard( lhs, operator, rhs );\n\t\t}\n\t}\n\n\t@Override\n\tprotected void renderPartitionItem(Expression expression) {\n\t\tif ( expression instanceof Literal ) {\n\t\t\tappendSql( \"grouping sets (())\" );\n\t\t}\n\t\telse if ( expression instanceof Summarization ) {\n\t\t\tthrow new UnsupportedOperationException( \"Summarization is not supported by DBMS\" );\n\t\t}\n\t\telse {\n\t\t\texpression.accept( this );\n\t\t}\n\t}\n\n\t@Override\n\tprotected void renderInsertIntoNoColumns(TableInsertStandard tableInsert) {\n\t\tthrow new MappingException(\n\t\t\t\tString.format(\n\t\t\t\t\t\t\"The INSERT statement for table [%s] contains no column, and this is not supported by [%s]\",\n\t\t\t\t\t\ttableInsert.getMutatingTable().getTableId(),\n\t\t\t\t\t\tgetDialect()\n\t\t\t\t)\n\t\t);\n\t}\n\n\t@Override","sourceCodeStart":292,"sourceCodeEnd":328,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/dialect/sql/ast/HANASqlAstTranslator.java#L292-L328","documentation":"Error \"Summarization is not supported by DBMS\" thrown in hibernate/hibernate-orm.","triggerScenarios":"Thrown at hibernate-core/src/main/java/org/hibernate/dialect/sql/ast/HANASqlAstTranslator.java:310 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Do not use the summarize construct on SAP HANA; compute summaries with aggregation queries"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fad1729dce015f908198d57a8d80274a30f905a5","analyzedAt":"2026-08-22T04:13:57.527Z","schemaVersion":2},"datasetVersion":"2026-08-22T09:17:25.309Z"}