ydb-python-sdk
ydb-python-sdk copied to clipboard
bug: 'NoneType' object has no attribute 'get_value' for TZ_DATETIME
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: