Skip to content

FieldPath.from_string does not accept UUIDs #1012

@zaphod72

Description

@zaphod72

The docs for FieldPath say

This method splits on the character . and disallows the characters ``*/[]. To create a FieldPath whose components have those characters, call the constructor.

When I try using a UUID string (ex: a344a6ea-9911-40a8-bd99-00f0b8d61155) it fails with:
"Non-alphanum char in element with leading alpha: {}"

The regex used is at

_LEADING_ALPHA_INVALID = re.compile("^[_a-zA-Z][_a-zA-Z0-9]*[^_a-zA-Z0-9]")

Metadata

Metadata

Assignees

Labels

type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions