Skip to content

Commit

Permalink
fix sorting bug (#1601)
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksanderWWW committed Dec 18, 2023
1 parent b0cf789 commit 9fba58f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/neptune/internal/backends/hosted_neptune_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ def _get_file_set_download_request(self, container_id: str, container_type: Cont
def _get_column_types(self, project_id: UniqueId, column: str, types: Optional[Iterable[str]] = None) -> List[Any]:
params = {
"projectIdentifier": project_id,
"search": f"/^{column}$/", # exact regex match
"search": column,
"type": types,
"params": {},
**DEFAULT_REQUEST_KWARGS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,10 @@ class DTO:
{"entries": [DTO(type="float"), DTO(type="int")], "result": AttributeType.FLOAT.value},
{"entries": [DTO(type="float"), DTO(type="int"), DTO(type="datetime")], "result": AttributeType.STRING.value},
{"entries": [DTO(type="float"), DTO(type="int"), DTO(type="string")], "result": AttributeType.STRING.value},
{
"entries": [DTO(type="float"), DTO(type="int"), DTO(type="string", name="test_column_different")],
"result": AttributeType.FLOAT.value,
},
]

# then
Expand Down

0 comments on commit 9fba58f

Please sign in to comment.