From 5b1ac5070c43c40a2b5bbc991198b0dddf45dc75 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 8 Mar 2023 08:22:15 +0100 Subject: Merging upstream version 11.3.3. Signed-off-by: Daniel Baumann --- docs/sqlglot/dataframe/sql.html | 46 ++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'docs/sqlglot/dataframe/sql.html') diff --git a/docs/sqlglot/dataframe/sql.html b/docs/sqlglot/dataframe/sql.html index 9c49563..39acae5 100644 --- a/docs/sqlglot/dataframe/sql.html +++ b/docs/sqlglot/dataframe/sql.html @@ -608,7 +608,7 @@
def - createDataFrame( self, data: Sequence[Union[Dict[str, <MagicMock id='140472806286400'>], List[<MagicMock id='140472806286400'>], Tuple]], schema: Optional[<MagicMock id='140472806820784'>] = None, samplingRatio: Optional[float] = None, verifySchema: bool = False) -> sqlglot.dataframe.sql.DataFrame: + createDataFrame( self, data: Sequence[Union[Dict[str, <MagicMock id='139816741409008'>], List[<MagicMock id='139816741409008'>], Tuple]], schema: Optional[<MagicMock id='139816741291056'>] = None, samplingRatio: Optional[float] = None, verifySchema: bool = False) -> sqlglot.dataframe.sql.DataFrame: @@ -1476,7 +1476,7 @@
- DataFrame( spark: <MagicMock id='140472811025888'>, 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='140472809295296'>] = None, **kwargs) + DataFrame( spark: <MagicMock id='139816743982688'>, 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='139816744201776'>] = None, **kwargs) @@ -2214,7 +2214,7 @@ is unlikely to come up.

@operation(Operation.FROM)
def - fillna( self, value: <MagicMock id='140472806747648'>, subset: Union[str, Tuple[str, ...], List[str], NoneType] = None) -> sqlglot.dataframe.sql.DataFrame: + fillna( self, value: <MagicMock id='139816742311856'>, subset: Union[str, Tuple[str, ...], List[str], NoneType] = None) -> sqlglot.dataframe.sql.DataFrame: @@ -2283,7 +2283,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='140472804979616'>], <MagicMock id='140472804979616'>, 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='139816742247472'>], <MagicMock id='139816742247472'>, NoneType] = None) -> sqlglot.dataframe.sql.DataFrame: @@ -2488,7 +2488,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='140472805135488'>], *cols: <MagicMock id='140472805162720'>) -> sqlglot.dataframe.sql.DataFrame: + repartition( self, numPartitions: Union[int, <MagicMock id='139816742350096'>], *cols: <MagicMock id='139816741969184'>) -> sqlglot.dataframe.sql.DataFrame: @@ -2893,10 +2893,10 @@ and check if it matches the type of the value provided. If not then make it null 68 return self.binary_op(exp.Mul, other) 69 70 def __truediv__(self, other: ColumnOrLiteral) -> Column: - 71 return self.binary_op(exp.Div, other) + 71 return self.binary_op(exp.FloatDiv, other) 72 73 def __div__(self, other: ColumnOrLiteral) -> Column: - 74 return self.binary_op(exp.Div, other) + 74 return self.binary_op(exp.FloatDiv, other) 75 76 def __neg__(self) -> Column: 77 return self.unary_op(exp.Neg) @@ -2911,10 +2911,10 @@ and check if it matches the type of the value provided. If not then make it null 86 return self.inverse_binary_op(exp.Mul, other) 87 88 def __rdiv__(self, other: ColumnOrLiteral) -> Column: - 89 return self.inverse_binary_op(exp.Div, other) + 89 return self.inverse_binary_op(exp.FloatDiv, other) 90 91 def __rtruediv__(self, other: ColumnOrLiteral) -> Column: - 92 return self.inverse_binary_op(exp.Div, other) + 92 return self.inverse_binary_op(exp.FloatDiv, other) 93 94 def __rmod__(self, other: ColumnOrLiteral) -> Column: 95 return self.inverse_binary_op(exp.Mod, other) @@ -3156,7 +3156,7 @@ and check if it matches the type of the value provided. If not then make it null
- Column( expression: Union[<MagicMock id='140472807220864'>, sqlglot.expressions.Expression, NoneType]) + Column( expression: Union[<MagicMock id='139816743230128'>, sqlglot.expressions.Expression, NoneType]) @@ -3184,7 +3184,7 @@ 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='140472805310912'>, sqlglot.expressions.Expression, NoneType]): + ensure_col( cls, value: Union[<MagicMock id='139816742475216'>, sqlglot.expressions.Expression, NoneType]): @@ -3205,7 +3205,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='140472805659008'>, sqlglot.expressions.Expression]]) -> List[sqlglot.dataframe.sql.Column]: + ensure_cols( cls, args: List[Union[<MagicMock id='139816742744512'>, sqlglot.expressions.Expression]]) -> List[sqlglot.dataframe.sql.Column]: @@ -3226,7 +3226,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='140472805529376'>], func_name: str, *args: Optional[<MagicMock id='140472805471088'>]) -> sqlglot.dataframe.sql.Column: + invoke_anonymous_function( cls, column: Optional[<MagicMock id='139816742608448'>], func_name: str, *args: Optional[<MagicMock id='139816742622240'>]) -> sqlglot.dataframe.sql.Column: @@ -3253,7 +3253,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='140472805366256'>], callable_expression: Callable, **kwargs) -> sqlglot.dataframe.sql.Column: + invoke_expression_over_column( cls, column: Optional[<MagicMock id='139816742786080'>], callable_expression: Callable, **kwargs) -> sqlglot.dataframe.sql.Column: @@ -3290,7 +3290,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='140472805069328'>, **kwargs) -> sqlglot.dataframe.sql.Column: + binary_op( self, klass: Callable, other: <MagicMock id='139816742826624'>, **kwargs) -> sqlglot.dataframe.sql.Column: @@ -3311,7 +3311,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='140472805078736'>, **kwargs) -> sqlglot.dataframe.sql.Column: + inverse_binary_op( self, klass: Callable, other: <MagicMock id='139816742329968'>, **kwargs) -> sqlglot.dataframe.sql.Column: @@ -3821,7 +3821,7 @@ Sqlglot doesn't currently replicate this class so it only accepts a string

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

def - between( self, lowerBound: <MagicMock id='140472803925808'>, upperBound: <MagicMock id='140472803947520'>) -> sqlglot.dataframe.sql.Column: + between( self, lowerBound: <MagicMock id='139816739992480'>, upperBound: <MagicMock id='139816740066480'>) -> sqlglot.dataframe.sql.Column: @@ -3877,7 +3877,7 @@ Sqlglot doesn't currently replicate this class so it only accepts a string

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

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

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

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

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