Skip to content

how to define long varchar in hazelcast python client? #632

@6273parastu

Description

@6273parastu

Hi, I create map in hazelcast with sql statement like this:

query = f'''CREATE MAPPING  {category_name}(
    __key INT,
    create_time BIGINT,
    raw_database VARCHAR)
    TYPE IMap
    OPTIONS('keyFormat'='int', 'valueFormat'='json-flat');'''
create_category_response = client.sql.execute(query)

when i insert long varchar in map:

query = f"INSERT INTO {category_name} VALUES(1, 146546321654, '{row_database}');"
reponse = client.sql.execute(query)

get error like this:
HazelcastSqlError("Length of identifier 'jkhbjhbkjqwertyuiop[]asdfghjkl;'/.mnbvcxzasdfgqewrtyhygjutjqazwsxedcrfvtgbnhytgujmnhy15978huinhtrfvgdeswapkmjbgjnbhytqwexzasfeaqijnhb531254872gtdghgggggga", ' must be less than or equal to 128 characters", None)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions