Skip to content

bug: 'NoneType' object has no attribute 'get_value' for TZ_DATETIME #321

Open
@SloNN

Description

@SloNN

Bug Report

YDB Python SDK version:

Environment

Mac OS X

Current behavior:

select AddTimezone(Datetime("2000-01-01T12:00:00Z"),"Europe/Moscow"),
AddTimezone(Datetime("2000-01-01T12:00:00Z"),"America/Los_Angeles"),
cast(RemoveTimezone(TzDatetime("2000-01-01T12:00:00,Europe/Moscow")) as string),
cast(RemoveTimezone(TzDatetime("2000-01-01T12:00:00,America/Los_Angeles")) as string);

def _pb_to_primitive(type_pb, value_pb, table_client_settings):
  return _primitive_type_by_id.get(type_pb.type_id).get_value(value_pb, table_client_settings)

E AttributeError: 'NoneType' object has no attribute 'get_value'

Expected behavior:

Other information:

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