{"record":{"id":"799eeb3bbabd3e4c","repo":"apache/flink","slug":"a-predicate-on-a-timestamp-column-requires-a-java","errorCode":null,"errorMessage":"A predicate on a TIMESTAMP column requires a java.sql.Timestamp literal.","messagePattern":"A predicate on a TIMESTAMP column requires a java\\.sql\\.Timestamp literal\\.","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"flink-formats/flink-orc/src/main/java/org/apache/flink/orc/OrcFilters.java","lineNumber":467,"sourceCode":"                case BOOLEAN:\n                    if (literal instanceof Boolean) {\n                        return literal;\n                    } else {\n                        throw new IllegalArgumentException(\n                                \"A predicate on a BOOLEAN column requires a Boolean literal.\");\n                    }\n                case DATE:\n                    if (literal instanceof Date) {\n                        return literal;\n                    } else {\n                        throw new IllegalArgumentException(\n                                \"A predicate on a DATE column requires a java.sql.Date literal.\");\n                    }\n                case TIMESTAMP:\n                    if (literal instanceof Timestamp) {\n                        return literal;\n                    } else {\n                        throw new IllegalArgumentException(\n                                \"A predicate on a TIMESTAMP column requires a java.sql.Timestamp literal.\");\n                    }\n                case DECIMAL:\n                    if (literal instanceof BigDecimal) {\n                        return new HiveDecimalWritable(HiveDecimal.create((BigDecimal) literal));\n                    } else {\n                        throw new IllegalArgumentException(\n                                \"A predicate on a DECIMAL column requires a BigDecimal literal.\");\n                    }\n                default:\n                    throw new IllegalArgumentException(\"Unknown literal type \" + literalType);\n            }\n        }\n    }\n\n    abstract static class BinaryPredicate extends ColumnPredicate {\n        final Serializable literal;\n","sourceCodeStart":449,"sourceCodeEnd":485,"githubUrl":"https://github.com/apache/flink/blob/2f3c205e9266cb30240eb7f4fdab15cad629a70f/flink-formats/flink-orc/src/main/java/org/apache/flink/orc/OrcFilters.java#L449-L485","documentation":"Error \"A predicate on a TIMESTAMP column requires a java.sql.Timestamp literal.\" thrown in apache/flink.","triggerScenarios":"Triggered at runtime when the operation fails because: A predicate on a TIMESTAMP column requires a java.sql.Timestamp literal.","commonSituations":"Commonly caused by misconfiguration, missing dependencies or files, unsupported types or operations, or invalid user input leading to: A predicate on a TIMESTAMP column requires a java.sql.Timestamp literal.","solutions":["Address the cause reported by the error message: A predicate on a TIMESTAMP column requires a java.sql.Timestamp literal.","Verify the inputs, configuration values, and classpath/dependency setup related to this operation, then retry."],"exampleFix":"Correct the condition described (\"A predicate on a TIMESTAMP column requires a java.sql.Timestamp literal.\") and rerun the job or command.","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2f3c205e9266cb30240eb7f4fdab15cad629a70f","analyzedAt":"2026-08-14T08:48:24.518Z","schemaVersion":2},"datasetVersion":"2026-08-14T10:17:34.591Z"}