-
Notifications
You must be signed in to change notification settings - Fork 915
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate types in pylibcudf Column/Table constructors (#15088)
Otherwise, someone can pass any random object to the constructor and will receive an unfriendly segfault when interacting with libcudf. Authors: - Lawrence Mitchell (https://github.com/wence-) Approvers: - GALI PREM SAGAR (https://github.com/galipremsagar) URL: #15088
- Loading branch information
Showing
7 changed files
with
118 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,37 @@ | ||
# Copyright (c) 2024, NVIDIA CORPORATION. | ||
|
||
from cudf._lib.cpp.types cimport null_equality | ||
|
||
from .column cimport Column | ||
from .table cimport Table | ||
|
||
|
||
cpdef tuple inner_join(Table left_keys, Table right_keys) | ||
cpdef tuple inner_join( | ||
Table left_keys, | ||
Table right_keys, | ||
null_equality nulls_equal | ||
) | ||
|
||
cpdef tuple left_join(Table left_keys, Table right_keys) | ||
cpdef tuple left_join( | ||
Table left_keys, | ||
Table right_keys, | ||
null_equality nulls_equal | ||
) | ||
|
||
cpdef tuple full_join(Table left_keys, Table right_keys) | ||
cpdef tuple full_join( | ||
Table left_keys, | ||
Table right_keys, | ||
null_equality nulls_equal | ||
) | ||
|
||
cpdef Column left_semi_join(Table left_keys, Table right_keys) | ||
cpdef Column left_semi_join( | ||
Table left_keys, | ||
Table right_keys, | ||
null_equality nulls_equal | ||
) | ||
|
||
cpdef Column left_anti_join(Table left_keys, Table right_keys) | ||
cpdef Column left_anti_join( | ||
Table left_keys, | ||
Table right_keys, | ||
null_equality nulls_equal | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters