{"record":{"id":"ac76a6b95f694a3e","repo":"influxdata/influxdb","slug":"error-converting-partition-hash-id-0","errorCode":null,"errorMessage":"Error converting partition_hash_id: {0}","messagePattern":"Error converting partition_hash_id: (.+?)","errorType":"exception","errorClass":"ProtoV1ParquetFileError","httpStatus":null,"severity":"error","filePath":"core/data_types/src/lib.rs","lineNumber":1261,"sourceCode":"            min_time: v.min_time.get(),\n            max_time: v.max_time.get(),\n            to_delete: v.to_delete.map(|v| v.get()),\n            file_size_bytes: v.file_size_bytes,\n            row_count: v.row_count,\n            compaction_level: v.compaction_level as i32,\n            created_at: v.created_at.get(),\n            column_set: v.column_set.iter().map(|v| v.get()).collect(),\n            max_l0_created_at: v.max_l0_created_at.get(),\n            source: ParquetFileSource::to_proto(v.source),\n        }\n    }\n}\n\n/// Errors converting from a catalog proto v1 ParquetFile to [`ParquetFile`].\n#[derive(Debug, Error)]\npub enum ProtoV1ParquetFileError {\n    /// invalid partition hash id\n    #[error(\"Error converting partition_hash_id: {0}\")]\n    PartitionHashId(#[from] PartitionHashIdError),\n\n    /// invalid object store it\n    #[error(\"Error converting object_store_id: {0}\")]\n    ObjectStoreId(#[from] uuid::Error),\n\n    /// invalid compaction level\n    #[error(\"Error converting compaction level\")]\n    CompactionLevel,\n}\n\nimpl TryFrom<catalog_proto::ParquetFile> for ParquetFile {\n    type Error = ProtoV1ParquetFileError;\n\n    fn try_from(v: catalog_proto::ParquetFile) -> Result<Self, Self::Error> {\n        Ok(Self {\n            id: ParquetFileId::new(v.id),\n            namespace_id: NamespaceId::new(v.namespace_id),","sourceCodeStart":1243,"sourceCodeEnd":1279,"githubUrl":"https://github.com/influxdata/influxdb/blob/06200ef96ba82c5f6727e5038a83af8e722c6875/core/data_types/src/lib.rs#L1243-L1279","documentation":"ProtoV1ParquetFileError::PartitionHashId is raised when converting a catalog proto v1 ParquetFile to the native ParquetFile type and its partition hash id fails to parse into a valid PartitionHashId (via PartitionHashIdError).","triggerScenarios":"Converting a v1 ParquetFile proto whose partition_hash_id string is malformed (wrong length, non-hex characters, empty) during catalog deserialization.","commonSituations":"Corrupted or truncated catalog records; protos written by incompatible versions using a different hash-id format; manual data migration copying ids incorrectly.","solutions":["Fix the partition_hash_id value in the stored proto so it is a valid hash id","Regenerate/re-write the ParquetFile record from source data with a correctly computed partition hash","Verify the writer and reader use the same PartitionHashId format/version"],"exampleFix":"// before (proto)\npartition_hash_id: \"zz-not-hex\"\n// after\npartition_hash_id: \"3f2a9c1e4b7d\" // valid hash id","handlingStrategy":"validation","validationCode":"fn partition_hash_id_ok(s: &str) -> bool {\n    !s.is_empty() && s.chars().all(|c| c.is_ascii_hexdigit())\n}","typeGuard":null,"tryCatchPattern":"let pf = ParquetFile::try_from(proto).map_err(|e| match e {\n    ProtoV1ParquetFileError::PartitionHashId(src) => anyhow!(\"bad partition hash id: {}\", src),\n    other => anyhow!(other),\n})?;","preventionTips":["Generate partition hash ids only via the library's PartitionHashId constructor","Never hand-edit hash ids in stored protos","Round-trip test serialized ParquetFile records in CI"],"tags":["rust","protobuf","parquet","catalog"],"backgroundTag":"invalid-identifier-format","analyzedSha":"06200ef96ba82c5f6727e5038a83af8e722c6875","analyzedAt":"2026-09-19T12:55:30.003Z","contentChangedAt":"2026-09-19T12:55:30.003Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}