@@ -122,7 +122,7 @@ def getConf(self, key, defaultValue):
122122 return self ._ssql_ctx .getConf (key , defaultValue )
123123
124124 @property
125- @since (1.3 )
125+ @since (" 1.3.1" )
126126 def udf (self ):
127127 """Returns a :class:`UDFRegistration` for UDF registration."""
128128 return UDFRegistration (self )
@@ -149,6 +149,7 @@ def range(self, start, end, step=1, numPartitions=None):
149149 return DataFrame (jdf , self )
150150
151151 @ignore_unicode_prefix
152+ @since (1.2 )
152153 def registerFunction (self , name , f , returnType = StringType ()):
153154 """Registers a lambda function as a UDF so it can be used in SQL statements.
154155
@@ -358,6 +359,7 @@ def registerDataFrameAsTable(self, df, tableName):
358359 else :
359360 raise ValueError ("Can only register DataFrame as table" )
360361
362+ @since (1.0 )
361363 def parquetFile (self , * paths ):
362364 """Loads a Parquet file, returning the result as a :class:`DataFrame`.
363365
@@ -376,6 +378,7 @@ def parquetFile(self, *paths):
376378 jdf = self ._ssql_ctx .parquetFile (jpaths )
377379 return DataFrame (jdf , self )
378380
381+ @since (1.0 )
379382 def jsonFile (self , path , schema = None , samplingRatio = 1.0 ):
380383 """Loads a text file storing one JSON object per line as a :class:`DataFrame`.
381384
@@ -416,6 +419,7 @@ def jsonFile(self, path, schema=None, samplingRatio=1.0):
416419 return DataFrame (df , self )
417420
418421 @ignore_unicode_prefix
422+ @since (1.0 )
419423 def jsonRDD (self , rdd , schema = None , samplingRatio = 1.0 ):
420424 """Loads an RDD storing one JSON object per string as a :class:`DataFrame`.
421425
@@ -500,6 +504,7 @@ def createExternalTable(self, tableName, path=None, source=None,
500504 return DataFrame (df , self )
501505
502506 @ignore_unicode_prefix
507+ @since (1.0 )
503508 def sql (self , sqlQuery ):
504509 """Returns a :class:`DataFrame` representing the result of the given query.
505510
@@ -510,6 +515,7 @@ def sql(self, sqlQuery):
510515 """
511516 return DataFrame (self ._ssql_ctx .sql (sqlQuery ), self )
512517
518+ @since (1.0 )
513519 def table (self , tableName ):
514520 """Returns the specified table as a :class:`DataFrame`.
515521
@@ -557,10 +563,12 @@ def tableNames(self, dbName=None):
557563 else :
558564 return [name for name in self ._ssql_ctx .tableNames (dbName )]
559565
566+ @since (1.0 )
560567 def cacheTable (self , tableName ):
561568 """Caches the specified table in-memory."""
562569 self ._ssql_ctx .cacheTable (tableName )
563570
571+ @since (1.0 )
564572 def uncacheTable (self , tableName ):
565573 """Removes the specified table from the in-memory cache."""
566574 self ._ssql_ctx .uncacheTable (tableName )
0 commit comments