Skip to content
This repository was archived by the owner on Nov 22, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion third_party/3/pyspark/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ from pyspark.storagelevel import StorageLevel as StorageLevel
from pyspark.taskcontext import BarrierTaskContext as BarrierTaskContext, BarrierTaskInfo as BarrierTaskInfo, TaskContext as TaskContext

# Compatiblity imports
from pyspark.sql import SQLContext, HiveContext, Row
from pyspark.sql import SQLContext, Row

# Names in __all__ with no definition:
# SparkJobInfo
Expand Down
2 changes: 1 addition & 1 deletion third_party/3/pyspark/mllib/clustering.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class KMeansModel(Saveable, Loader[KMeansModel]):

class KMeans:
@classmethod
def train(cls, rdd: RDD[VectorLike], k: int, maxIterations: int = ..., runs: int = ..., initializationMode: str = ..., seed: Optional[int] = ..., initializationSteps: int = ..., epsilon: float = ..., initialModel: Optional[KMeansModel] = ...) -> KMeansModel: ...
def train(cls, rdd: RDD[VectorLike], k: int, maxIterations: int = ..., initializationMode: str = ..., seed: Optional[int] = ..., initializationSteps: int = ..., epsilon: float = ..., initialModel: Optional[KMeansModel] = ...) -> KMeansModel: ...

class GaussianMixtureModel(JavaModelWrapper, JavaSaveable, JavaLoader[GaussianMixtureModel]):
@property
Expand Down
2 changes: 1 addition & 1 deletion third_party/3/pyspark/sql/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# NOTE: This dynamically typed stub was automatically generated by stubgen.

from pyspark.sql.types import Row as Row
from pyspark.sql.context import SQLContext as SQLContext, HiveContext as HiveContext, UDFRegistration as UDFRegistration
from pyspark.sql.context import SQLContext as SQLContext, UDFRegistration as UDFRegistration
from pyspark.sql.session import SparkSession as SparkSession
from pyspark.sql.column import Column as Column
from pyspark.sql.dataframe import DataFrame as DataFrame, DataFrameNaFunctions as DataFrameNaFunctions, DataFrameStatFunctions as DataFrameStatFunctions
Expand Down
1 change: 0 additions & 1 deletion third_party/3/pyspark/sql/catalog.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class Catalog:
def listTables(self, dbName: Optional[str] = ...) -> List[Table]: ...
def listFunctions(self, dbName: Optional[str] = ...) -> List[Function]: ...
def listColumns(self, tableName: str, dbName: Optional[str] = ...) -> List[Column]: ...
def createExternalTable(self, tableName: str, path: Optional[str] = ..., source: Optional[str] = ..., schema: Optional[StructType] = ..., **options: str) -> DataFrame: ...
def createTable(self, tableName: str, path: Optional[str] = ..., source: Optional[str] = ..., schema: Optional[StructType] = ..., **options: str) -> DataFrame: ...
def dropTempView(self, viewName: str) -> None: ...
def dropGlobalTempView(self, viewName: str) -> None: ...
Expand Down
5 changes: 0 additions & 5 deletions third_party/3/pyspark/sql/context.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ class SQLContext:
def createDataFrame(self, data: Union[RDD[Union[DateTimeLiteral, LiteralType, DecimalLiteral]], List[Union[DateTimeLiteral, LiteralType, DecimalLiteral]]], schema: DataType, verifySchema: bool = ...) -> DataFrame: ...
def registerDataFrameAsTable(self, df: DataFrame, tableName: str) -> None: ...
def dropTempTable(self, tableName: str) -> None: ...
def createExternalTable(self, tableName: str, path: Optional[str] = ..., source: Optional[str] = ..., schema: Optional[StructType] = ..., **options) -> DataFrame: ...
def sql(self, sqlQuery: str) -> DataFrame: ...
def table(self, tableName: str) -> DataFrame: ...
def tables(self, dbName: Optional[str] = ...) -> DataFrame: ...
Expand All @@ -54,10 +53,6 @@ class SQLContext:
@property
def streams(self) -> StreamingQueryManager: ...

class HiveContext(SQLContext):
def __init__(self, sparkContext: SparkContext, jhiveContext: Optional[JavaObject] = ...) -> None: ...
def refreshTable(self, tableName: str) -> None: ...

class UDFRegistration:
sqlContext = ... # SQLContext
def __init__(self, sqlContext: SQLContext) -> None: ...
Expand Down