{"record":{"id":"7b6b6f049d0165d9","repo":"risingwavelabs/risingwave","slug":"cannot-find-lon-name-please-set-it","errorCode":null,"errorMessage":"Cannot find `{LON_NAME}`, please set it.","messagePattern":"Cannot find `(.+?)`, please set it\\.","errorType":"validation","errorClass":"SinkError","httpStatus":null,"severity":"error","filePath":"src/connector/src/sink/formatter/mod.rs","lineNumber":354,"sourceCode":"                    let member_name = b.format_desc.options.get(MEMBER_NAME).ok_or_else(|| {\n                        SinkError::Config(anyhow!(\"Cannot find `{MEMBER_NAME}`,please set it.\"))\n                    })?;\n                    let template = b.format_desc.options.get(KEY_FORMAT).ok_or_else(|| {\n                        SinkError::Config(anyhow!(\"Cannot find `{KEY_FORMAT}`,please set it.\"))\n                    })?;\n                    TemplateEncoder::new_geo_key(\n                        b.schema,\n                        pk_indices,\n                        member_name,\n                        template.clone(),\n                    )\n                }\n                None => {\n                    let lat_name = b.format_desc.options.get(LAT_NAME).ok_or_else(|| {\n                        SinkError::Config(anyhow!(\"Cannot find `{LAT_NAME}`, please set it.\"))\n                    })?;\n                    let lon_name = b.format_desc.options.get(LON_NAME).ok_or_else(|| {\n                        SinkError::Config(anyhow!(\"Cannot find `{LON_NAME}`,please set it.\"))\n                    })?;\n                    TemplateEncoder::new_geo_value(b.schema, pk_indices, lat_name, lon_name)\n                }\n            },\n            REDIS_VALUE_TYPE_PUBSUB => match pk_indices {\n                Some(_) => {\n                    let channel = b.format_desc.options.get(CHANNEL).cloned();\n                    let channel_column = b.format_desc.options.get(CHANNEL_COLUMN).cloned();\n                    if (channel.is_none() && channel_column.is_none())\n                        || (channel.is_some() && channel_column.is_some())\n                    {\n                        return Err(SinkError::Config(anyhow!(\n                            \"`{CHANNEL}` and `{CHANNEL_COLUMN}` only one can be set\"\n                        )));\n                    }\n                    TemplateEncoder::new_pubsub_stream_key(\n                        b.schema,\n                        pk_indices,","sourceCodeStart":336,"sourceCodeEnd":372,"githubUrl":"https://github.com/risingwavelabs/risingwave/blob/6469eb736d691e8e9b8a419a57edd6429ca77417/src/connector/src/sink/formatter/mod.rs#L336-L372","documentation":"For `redis_value_type = 'geospatial'` sinks WITHOUT a primary key, after `latitude` the builder requires the `longitude` option (the longitude column name/template). Missing `longitude` aborts the sink build with this SinkError::Config.","triggerScenarios":"Creating a Redis geospatial sink without a primary key, providing `latitude` but not `longitude` in the WITH options.","commonSituations":"Users set one coordinate option and forget the other; the error message names exactly which one is missing.","solutions":["Add `longitude = '<lon-column>'` to the WITH options.","Ensure both `latitude` and `longitude` point to numeric columns in the sink schema.","Verify the sink has no primary key; a primary-key geospatial sink needs `member` and `key_format` instead."],"exampleFix":"// before\nWITH (redis_value_type='geospatial', latitude='lat');\n// after\nWITH (redis_value_type='geospatial', latitude='lat', longitude='lon');","handlingStrategy":"validation","validationCode":"if value_type == \"geospatial\" && !has_pk && !with_options.contains_key(\"longitude\") {\n    return Err(\"Redis geospatial sink without PK requires `longitude` option\".into());\n}","typeGuard":null,"tryCatchPattern":"match result {\n    Err(e) if e.to_string().contains(\"`longitude`\") => {\n        eprintln!(\"Add `longitude = '<col>'` to WITH options: {}\", e);\n    }\n    other => other?,\n}","preventionTips":["Always set latitude and longitude together","Point both options to numeric schema columns","Review the WITH clause against the Redis sink docs"],"tags":["redis","sink","geospatial","configuration"],"backgroundTag":"missing-required-option","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"}