{"record":{"id":"8d94a227690e8432","repo":"prestodb/presto","slug":"setunicodestream","errorCode":null,"errorMessage":"setUnicodeStream","messagePattern":"setUnicodeStream","errorType":"exception","errorClass":"SQLFeatureNotSupportedException","httpStatus":null,"severity":"error","filePath":"presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoPreparedStatement.java","lineNumber":295,"sourceCode":"            setNull(parameterIndex, Types.TIMESTAMP);\n        }\n        else {\n            setParameter(parameterIndex, formatLiteral(\"TIMESTAMP\", TIMESTAMP_FORMATTER.print(x.getTime())));\n        }\n    }\n\n    @Override\n    public void setAsciiStream(int parameterIndex, InputStream x, int length)\n            throws SQLException\n    {\n        throw new NotImplementedException(\"PreparedStatement\", \"setAsciiStream\");\n    }\n\n    @Override\n    public void setUnicodeStream(int parameterIndex, InputStream x, int length)\n            throws SQLException\n    {\n        throw new SQLFeatureNotSupportedException(\"setUnicodeStream\");\n    }\n\n    @Override\n    public void setBinaryStream(int parameterIndex, InputStream x, int length)\n            throws SQLException\n    {\n        throw new NotImplementedException(\"PreparedStatement\", \"setBinaryStream\");\n    }\n\n    @Override\n    public void clearParameters()\n            throws SQLException\n    {\n        checkOpen();\n        parameters.clear();\n    }\n\n    @Override","sourceCodeStart":277,"sourceCodeEnd":313,"githubUrl":"https://github.com/prestodb/presto/blob/55bb57d202de3b926896fa966c2c4a44c779634e/presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoPreparedStatement.java#L277-L313","documentation":"setUnicodeStream is explicitly unsupported in this driver: the override always throws SQLFeatureNotSupportedException. It signals that the JDBC 1.0-style Unicode character stream parameter API has no Presto implementation, independent of the supplied parameter index or stream.","triggerScenarios":"Thrown at presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoPreparedStatement.java:295 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use setString with a java.lang.String instead of a Unicode character stream","Set character data via setCharacterStream alternatives only if the driver implements them (it does not for this driver version)","Refactor code paths that rely on stream-based character parameters"],"exampleFix":null,"handlingStrategy":"try-catch","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"}