Skip to content

Commit 823e5ab

Browse files
authored
support geo value (#160)
* support geo value * fix
1 parent fcacdfc commit 823e5ab

File tree

11 files changed

+1544
-681
lines changed

11 files changed

+1544
-681
lines changed

example/FormatResp.py

+2
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ def print_resp(resp):
4646
value_list.append(col.as_relationship())
4747
elif col.is_path():
4848
value_list.append(col.as_path())
49+
elif col.is_geography():
50+
value_list.append(col.as_geography())
4951
else:
5052
print('ERROR: Type unsupported')
5153
return

nebula2/common/constants.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515

1616

17-
from .ttypes import UTF8STRINGS, NullType, ErrorCode, SchemaID, Date, Time, DateTime, Value, NList, NMap, NSet, Row, DataSet, Geography, Tag, Vertex, Edge, Step, Path, HostAddr, KeyValue, LogInfo, DirInfo, NodeInfo, PartitionBackupInfo, CheckpointInfo, GraphSpaceID, PartitionID, TagID, EdgeType, EdgeRanking, LogID, TermID, Timestamp, IndexID, Port, SessionID, ExecutionPlanID
17+
from .ttypes import UTF8STRINGS, NullType, ErrorCode, SchemaID, Date, Time, DateTime, Value, NList, NMap, NSet, Row, DataSet, Coordinate, Point, LineString, Polygon, Geography, Tag, Vertex, Edge, Step, Path, HostAddr, KeyValue, LogInfo, DirInfo, NodeInfo, PartitionBackupInfo, CheckpointInfo, GraphSpaceID, PartitionID, TagID, EdgeType, EdgeRanking, LogID, TermID, Timestamp, IndexID, Port, SessionID, ExecutionPlanID
1818

1919
version = "2.6.0"
2020

0 commit comments

Comments
 (0)