Skip to content

Brackes in model variable names lead to syntax errors in ClickHouse #37

Closed
@michaelosthege

Description

@michaelosthege

Variables like the one below lead to syntax errors.

with pm.Model():
    pm.Uniform('b[1]', lower=1.5, upper=2.5)
clickhouse_driver.errors.ServerException: Code: 62.
DB::Exception: Syntax error: failed at position 46 ('['): [1]_interval__, b[1]_interva. Expected one of: token, Dot, UUID, Comma, ClosingRoundBracket.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions