Exemplo n.º 1
0
    def _spark(cls, column, **kwargs):
        parse_strings_as_datetimes: bool = (
            kwargs.get("parse_strings_as_datetimes") or False)
        if parse_strings_as_datetimes:
            warnings.warn(
                """The parameter "parse_strings_as_datetimes" is no longer supported and will be deprecated in a \
future release.  Please update code accordingly.
""",
                DeprecationWarning,
            )

            try:
                column = apply_dateutil_parse(column=column)
            except TypeError:
                pass

        return F.max(column)
 def _spark(cls, column, **kwargs: dict):  # type: ignore[no-untyped-def]
     return F.max(F.length(column))
Exemplo n.º 3
0
 def _spark(cls, column, **kwargs):
     return F.max(column)
Exemplo n.º 4
0
 def _spark(cls, column, _table, _column_name, **kwargs):
     """Spark Max Implementation"""
     return F.max(column)