{"record":{"id":"733ee5a20bea10b5","repo":"prestodb/presto","slug":"invalid-numeric-literal","errorCode":null,"errorMessage":"Invalid numeric literal: ","messagePattern":"Invalid numeric literal: ","errorType":"exception","errorClass":"ParsingException","httpStatus":null,"severity":"error","filePath":"presto-parser/src/main/java/com/facebook/presto/sql/tree/LongLiteral.java","lineNumber":45,"sourceCode":"    public LongLiteral(String value)\n    {\n        this(Optional.empty(), value);\n    }\n\n    public LongLiteral(NodeLocation location, String value)\n    {\n        this(Optional.of(location), value);\n    }\n\n    private LongLiteral(Optional<NodeLocation> location, String value)\n    {\n        super(location);\n        requireNonNull(value, \"value is null\");\n        try {\n            this.value = Long.parseLong(value);\n        }\n        catch (NumberFormatException e) {\n            throw new ParsingException(\"Invalid numeric literal: \" + value);\n        }\n    }\n\n    public long getValue()\n    {\n        return value;\n    }\n\n    @Override\n    public <R, C> R accept(AstVisitor<R, C> visitor, C context)\n    {\n        return visitor.visitLongLiteral(this, context);\n    }\n\n    @Override\n    public boolean equals(Object o)\n    {\n        if (this == o) {","sourceCodeStart":27,"sourceCodeEnd":63,"githubUrl":"https://github.com/prestodb/presto/blob/55bb57d202de3b926896fa966c2c4a44c779634e/presto-parser/src/main/java/com/facebook/presto/sql/tree/LongLiteral.java#L27-L63","documentation":"Validation in the LongLiteral constructor: the literal text cannot be parsed by Long.parseLong, so the token is not a representable 64-bit integer. Fires when a query contains an out-of-range or malformed integer literal (e.g. exceeding Long.MAX_VALUE); larger values should be written as DECIMAL or DOUBLE literals.","triggerScenarios":"Thrown at presto-parser/src/main/java/com/facebook/presto/sql/tree/LongLiteral.java:45 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Reduce the literal so it fits in a signed 64-bit integer (max 9223372036854775807)","Express large numbers as a DECIMAL literal (append BD suffix style) or DOUBLE literal instead","Fix typos such as stray characters in the numeric literal"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"55bb57d202de3b926896fa966c2c4a44c779634e","analyzedAt":"2026-09-04T12:50:26.162Z","contentChangedAt":"2026-09-04T12:50:26.162Z","schemaVersion":2},"datasetVersion":"2026-09-11T21:17:09.523Z"}