{"record":{"id":"71e03568f1d68b1b","repo":"risingwavelabs/risingwave","slug":"session-parameters-error-0","errorCode":null,"errorMessage":"Session parameters error: {0}","messagePattern":"Session parameters error: (.+?)","errorType":"error_code","errorClass":"MetaError","httpStatus":null,"severity":"error","filePath":"src/meta/src/error.rs","lineNumber":103,"sourceCode":"        &'static str,\n        String,\n        // if under creation, take streaming job id, otherwise None\n        Option<JobId>,\n    ),\n\n    #[error(\"Service unavailable: {0}\")]\n    Unavailable(#[message] String),\n\n    #[error(\"Election failed: {0}\")]\n    Election(#[source] BoxedError),\n\n    #[error(\"Cancelled: {0}\")]\n    Cancelled(String),\n\n    #[error(\"System parameters error: {0}\")]\n    SystemParams(String),\n\n    #[error(\"Session parameters error: {0}\")]\n    SessionConfig(\n        #[from]\n        #[backtrace]\n        SessionConfigError,\n    ),\n\n    #[error(transparent)]\n    Connector(\n        #[from]\n        #[backtrace]\n        ConnectorError,\n    ),\n\n    #[error(\"Sink error: {0}\")]\n    Sink(\n        #[from]\n        #[backtrace]\n        SinkError,","sourceCodeStart":85,"sourceCodeEnd":121,"githubUrl":"https://github.com/risingwavelabs/risingwave/blob/6469eb736d691e8e9b8a419a57edd6429ca77417/src/meta/src/error.rs#L85-L121","documentation":"Reading or writing a session-scoped configuration variable failed, wrapping a SessionConfigError via `#[from]`. Session params are per-connection settings (e.g. timezone, RW_IMPLICIT_FLUSH); this error means an attempt to get/set one failed.","triggerScenarios":"`SET <session_param> = <value>` with an unknown or invalid value, `SHOW <param>` for a nonexistent session variable, param value failing to parse into its target type.","commonSituations":"Typo'd SET variable names, setting a read-only or reserved variable, wrong value type (e.g. string where integer expected), variable removed/renamed after a RisingWave version change.","solutions":["Check the variable name spelling and that it exists in this RisingWave version (`SHOW VARIABLES`-style introspection).","Provide a value of the correct type/format for the variable.","If the variable was renamed in an upgrade, update scripts to the new name.","Use `RESET <variable>` to restore defaults if a bad value was set."],"exampleFix":"// before\nSET bariier_interval_ms = 1000; -- SessionConfig error (typo)\n// after\nSET barrier_interval_ms = 1000;","handlingStrategy":"validation","validationCode":"fn valid_session_param(name: &str, value: &str) -> bool {\n    matches!(name, \"barrier_interval_ms\" | \"timezone\" | \"query_mode\" /* ... */) && !value.is_empty()\n}","typeGuard":null,"tryCatchPattern":"match meta_result {\n    Err(MetaError::SessionConfig(e)) => { /* unknown or invalid session variable; introspect valid variables */ }\n    other => other?,\n}","preventionTips":["Introspect available session variables before SET (`SHOW VARIABLES`).","Match value types to the variable's expected type.","Pin scripts to a RisingWave version and re-verify variable names after upgrades.","Use RESET to recover from bad session values."],"tags":["meta","session-config","configuration","sql"],"backgroundTag":"invalid-config-value","analyzedSha":"6469eb736d691e8e9b8a419a57edd6429ca77417","analyzedAt":"2026-09-11T21:06:21.487Z","contentChangedAt":"2026-09-11T21:06:21.487Z","schemaVersion":2},"datasetVersion":"2026-09-14T16:17:12.679Z"}