From 36db14f4c6c28209371d563d76697df0172e337f Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 24 Jul 2023 10:03:48 +0200 Subject: Merging upstream version 17.7.0. Signed-off-by: Daniel Baumann --- docs/sqlglot/dataframe/sql.html | 48 ++++++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'docs/sqlglot/dataframe/sql.html') diff --git a/docs/sqlglot/dataframe/sql.html b/docs/sqlglot/dataframe/sql.html index 7445781..8700ab2 100644 --- a/docs/sqlglot/dataframe/sql.html +++ b/docs/sqlglot/dataframe/sql.html @@ -777,7 +777,7 @@
def - createDataFrame( self, data: Sequence[Union[Dict[str, <MagicMock id='140411904735552'>], List[<MagicMock id='140411904735552'>], Tuple]], schema: Optional[<MagicMock id='140411906690064'>] = None, samplingRatio: Optional[float] = None, verifySchema: bool = False) -> sqlglot.dataframe.sql.DataFrame: + createDataFrame( self, data: Sequence[Union[Dict[str, <MagicMock id='140539402082944'>], List[<MagicMock id='140539402082944'>], Tuple]], schema: Optional[<MagicMock id='140539402129216'>] = None, samplingRatio: Optional[float] = None, verifySchema: bool = False) -> sqlglot.dataframe.sql.DataFrame: @@ -1681,7 +1681,7 @@
- DataFrame( spark: <MagicMock id='140411909715808'>, expression: sqlglot.expressions.Select, branch_id: Optional[str] = None, sequence_id: Optional[str] = None, last_op: sqlglot.dataframe.sql.operations.Operation = <Operation.INIT: -1>, pending_hints: Optional[List[sqlglot.expressions.Expression]] = None, output_expression_container: Optional[<MagicMock id='140411909885280'>] = None, **kwargs) + DataFrame( spark: <MagicMock id='140539404916848'>, expression: sqlglot.expressions.Select, branch_id: Optional[str] = None, sequence_id: Optional[str] = None, last_op: sqlglot.dataframe.sql.operations.Operation = <Operation.INIT: -1>, pending_hints: Optional[List[sqlglot.expressions.Expression]] = None, output_expression_container: Optional[<MagicMock id='140539405009872'>] = None, **kwargs) @@ -2611,7 +2611,7 @@ is unlikely to come up.

@operation(Operation.FROM)
def - fillna( self, value: <MagicMock id='140411905248896'>, subset: Union[str, Tuple[str, ...], List[str], NoneType] = None) -> sqlglot.dataframe.sql.DataFrame: + fillna( self, value: <MagicMock id='140539400523248'>, subset: Union[str, Tuple[str, ...], List[str], NoneType] = None) -> sqlglot.dataframe.sql.DataFrame: @@ -2680,7 +2680,7 @@ and check if it matches the type of the value provided. If not then make it null
@operation(Operation.FROM)
def - replace( self, to_replace: Union[bool, int, float, str, List, Dict], value: Union[bool, int, float, str, List, NoneType] = None, subset: Union[Collection[<MagicMock id='140411903718352'>], <MagicMock id='140411903718352'>, NoneType] = None) -> sqlglot.dataframe.sql.DataFrame: + replace( self, to_replace: Union[bool, int, float, str, List, Dict], value: Union[bool, int, float, str, List, NoneType] = None, subset: Union[Collection[<MagicMock id='140539400461696'>], <MagicMock id='140539400461696'>, NoneType] = None) -> sqlglot.dataframe.sql.DataFrame: @@ -2885,7 +2885,7 @@ and check if it matches the type of the value provided. If not then make it null
@operation(Operation.NO_OP)
def - repartition( self, numPartitions: Union[int, <MagicMock id='140411903922128'>], *cols: <MagicMock id='140411904015376'>) -> sqlglot.dataframe.sql.DataFrame: + repartition( self, numPartitions: Union[int, <MagicMock id='140539400857312'>], *cols: <MagicMock id='140539401003136'>) -> sqlglot.dataframe.sql.DataFrame: @@ -3369,7 +3369,7 @@ and check if it matches the type of the value provided. If not then make it null 115 return self.inverse_binary_op(exp.Or, other) 116 117 @classmethod -118 def ensure_col(cls, value: t.Optional[t.Union[ColumnOrLiteral, exp.Expression]]): +118 def ensure_col(cls, value: t.Optional[t.Union[ColumnOrLiteral, exp.Expression]]) -> Column: 119 return cls(value) 120 121 @classmethod @@ -3514,7 +3514,7 @@ and check if it matches the type of the value provided. If not then make it null 260 new_expression = exp.Not(this=exp.Is(this=self.column_expression, expression=exp.Null())) 261 return Column(new_expression) 262 -263 def cast(self, dataType: t.Union[str, DataType]): +263 def cast(self, dataType: t.Union[str, DataType]) -> Column: 264 """ 265 Functionality Difference: PySpark cast accepts a datatype instance of the datatype class 266 Sqlglot doesn't currently replicate this class so it only accepts a string @@ -3590,7 +3590,7 @@ and check if it matches the type of the value provided. If not then make it null
- Column( expression: Union[<MagicMock id='140411907807680'>, sqlglot.expressions.Expression, NoneType]) + Column( expression: Union[<MagicMock id='140539402936640'>, sqlglot.expressions.Expression, NoneType]) @@ -3633,14 +3633,14 @@ and check if it matches the type of the value provided. If not then make it null
@classmethod
def - ensure_col( cls, value: Union[<MagicMock id='140411904110128'>, sqlglot.expressions.Expression, NoneType]): + ensure_col( cls, value: Union[<MagicMock id='140539401082464'>, sqlglot.expressions.Expression, NoneType]) -> sqlglot.dataframe.sql.Column:
117    @classmethod
-118    def ensure_col(cls, value: t.Optional[t.Union[ColumnOrLiteral, exp.Expression]]):
+118    def ensure_col(cls, value: t.Optional[t.Union[ColumnOrLiteral, exp.Expression]]) -> Column:
 119        return cls(value)
 
@@ -3654,7 +3654,7 @@ and check if it matches the type of the value provided. If not then make it null
@classmethod
def - ensure_cols( cls, args: List[Union[<MagicMock id='140411904283728'>, sqlglot.expressions.Expression]]) -> List[sqlglot.dataframe.sql.Column]: + ensure_cols( cls, args: List[Union[<MagicMock id='140539401020528'>, sqlglot.expressions.Expression]]) -> List[sqlglot.dataframe.sql.Column]: @@ -3675,7 +3675,7 @@ and check if it matches the type of the value provided. If not then make it null
@classmethod
def - invoke_anonymous_function( cls, column: Optional[<MagicMock id='140411903793648'>], func_name: str, *args: Optional[<MagicMock id='140411904390720'>]) -> sqlglot.dataframe.sql.Column: + invoke_anonymous_function( cls, column: Optional[<MagicMock id='140539401141168'>], func_name: str, *args: Optional[<MagicMock id='140539401263168'>]) -> sqlglot.dataframe.sql.Column: @@ -3702,7 +3702,7 @@ and check if it matches the type of the value provided. If not then make it null
@classmethod
def - invoke_expression_over_column( cls, column: Optional[<MagicMock id='140411904276080'>], callable_expression: Callable, **kwargs) -> sqlglot.dataframe.sql.Column: + invoke_expression_over_column( cls, column: Optional[<MagicMock id='140539399493696'>], callable_expression: Callable, **kwargs) -> sqlglot.dataframe.sql.Column: @@ -3739,7 +3739,7 @@ and check if it matches the type of the value provided. If not then make it null
def - binary_op( self, klass: Callable, other: <MagicMock id='140411904480480'>, **kwargs) -> sqlglot.dataframe.sql.Column: + binary_op( self, klass: Callable, other: <MagicMock id='140539399386160'>, **kwargs) -> sqlglot.dataframe.sql.Column: @@ -3760,7 +3760,7 @@ and check if it matches the type of the value provided. If not then make it null
def - inverse_binary_op( self, klass: Callable, other: <MagicMock id='140411904268496'>, **kwargs) -> sqlglot.dataframe.sql.Column: + inverse_binary_op( self, klass: Callable, other: <MagicMock id='140539399414416'>, **kwargs) -> sqlglot.dataframe.sql.Column: @@ -4160,13 +4160,13 @@ and check if it matches the type of the value provided. If not then make it null
def - cast(self, dataType: Union[str, sqlglot.dataframe.sql.types.DataType]): + cast( self, dataType: Union[str, sqlglot.dataframe.sql.types.DataType]) -> sqlglot.dataframe.sql.Column:
-
263    def cast(self, dataType: t.Union[str, DataType]):
+            
263    def cast(self, dataType: t.Union[str, DataType]) -> Column:
 264        """
 265        Functionality Difference: PySpark cast accepts a datatype instance of the datatype class
 266        Sqlglot doesn't currently replicate this class so it only accepts a string
@@ -4314,7 +4314,7 @@ Sqlglot doesn't currently replicate this class so it only accepts a string

def - isin( self, *cols: Union[<MagicMock id='140411902623952'>, Iterable[<MagicMock id='140411902623952'>]]): + isin( self, *cols: Union[<MagicMock id='140539399635728'>, Iterable[<MagicMock id='140539399635728'>]]): @@ -4335,7 +4335,7 @@ Sqlglot doesn't currently replicate this class so it only accepts a string

def - between( self, lowerBound: <MagicMock id='140411902714368'>, upperBound: <MagicMock id='140411902752464'>) -> sqlglot.dataframe.sql.Column: + between( self, lowerBound: <MagicMock id='140539399680064'>, upperBound: <MagicMock id='140539399772416'>) -> sqlglot.dataframe.sql.Column: @@ -4370,7 +4370,7 @@ Sqlglot doesn't currently replicate this class so it only accepts a string

def - over( self, window: <MagicMock id='140411902826560'>) -> sqlglot.dataframe.sql.Column: + over( self, window: <MagicMock id='140539399831664'>) -> sqlglot.dataframe.sql.Column: @@ -4615,7 +4615,7 @@ Sqlglot doesn't currently replicate this class so it only accepts a string

@classmethod
def - partitionBy( cls, *cols: Union[<MagicMock id='140411903155680'>, List[<MagicMock id='140411903155680'>]]) -> sqlglot.dataframe.sql.WindowSpec: + partitionBy( cls, *cols: Union[<MagicMock id='140539400316976'>, List[<MagicMock id='140539400316976'>]]) -> sqlglot.dataframe.sql.WindowSpec: @@ -4636,7 +4636,7 @@ Sqlglot doesn't currently replicate this class so it only accepts a string

@classmethod
def - orderBy( cls, *cols: Union[<MagicMock id='140411903260272'>, List[<MagicMock id='140411903260272'>]]) -> sqlglot.dataframe.sql.WindowSpec: + orderBy( cls, *cols: Union[<MagicMock id='140539400303328'>, List[<MagicMock id='140539400303328'>]]) -> sqlglot.dataframe.sql.WindowSpec: @@ -4872,7 +4872,7 @@ Sqlglot doesn't currently replicate this class so it only accepts a string

def - partitionBy( self, *cols: Union[<MagicMock id='140411902905984'>, List[<MagicMock id='140411902905984'>]]) -> sqlglot.dataframe.sql.WindowSpec: + partitionBy( self, *cols: Union[<MagicMock id='140539400150784'>, List[<MagicMock id='140539400150784'>]]) -> sqlglot.dataframe.sql.WindowSpec: @@ -4899,7 +4899,7 @@ Sqlglot doesn't currently replicate this class so it only accepts a string

def - orderBy( self, *cols: Union[<MagicMock id='140411902894160'>, List[<MagicMock id='140411902894160'>]]) -> sqlglot.dataframe.sql.WindowSpec: + orderBy( self, *cols: Union[<MagicMock id='140539400013664'>, List[<MagicMock id='140539400013664'>]]) -> sqlglot.dataframe.sql.WindowSpec: -- cgit v1.2.3