Skip to content

Commit f2d12df

Browse files
committed
Check isPrimaryKey: add comment abound columns Scala type conversion.
1 parent ecad4d1 commit f2d12df

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pydeequ/checks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ def isPrimaryKey(self, column, *columns, hint=None):
250250
:param str hint: A hint that states why a constraint could have failed.
251251
:return: isPrimaryKey self: A Check.scala object that asserts completion in the columns.
252252
"""
253+
# This relies on Py4J's implicit conversion from Seq to varargs:
253254
columns_seq = to_scala_seq(self._jvm, columns)
254255
hint = self._jvm.scala.Option.apply(hint)
255256
self._Check = self._Check.isPrimaryKey(column, hint, columns_seq)

0 commit comments

Comments
 (0)