dummy_spark.sql module

Module Context

class dummy_spark.sql.SQLContext(parkContext, sqlContext=None)[source]
applySchema(rdd, schema)[source]

NotImplemented

Parameters:
  • rdd
  • schema
Returns:

cacheTable(tableName)[source]

NotImplemented

Parameters:tableName
Returns:
clearCache()[source]

NotImplemented

Returns:
createDataFrame(data, schema=None, samplingRatio=None)[source]

NotImplemented

Parameters:
  • data
  • schema
  • samplingRatio
Returns:

createExternalTable(tableName, path=None, source=None, schema=None, **options)[source]

NotImplemented

Parameters:
  • tableName
  • path
  • source
  • schema
  • options
Returns:

getConf(key, defaultValue)[source]

NotImplemented

Parameters:
  • key
  • defaultValue
Returns:

inferSchema(rdd, samplingRatio=None)[source]

NotImplemented

Parameters:
  • rdd
  • samplingRatio
Returns:

jsonFile(path, schema=None, samplingRatio=1.0)[source]

NotImplemented

Parameters:
  • path
  • schema
  • samplingRatio
Returns:

jsonRDD(rdd, schema=None, samplingRatio=1.0)[source]

NotImplemented

Parameters:
  • rdd
  • schema
  • samplingRatio
Returns:

load(path=None, source=None, schema=None, **options)[source]

NotImplemented

Parameters:
  • path
  • source
  • schema
  • options
Returns:

parquetFile(*paths)[source]

NotImplemented

Parameters:paths
Returns:
range(start, end=None, step=1, numPartitions=None)[source]

NotImplemented

Parameters:
  • start
  • end
  • step
  • numPartitions
Returns:

read

NotImplemented

Returns:
registerDataFrameAsTable(df, tableName)[source]

NotImplemented

Parameters:
  • df
  • tableName
Returns:

registerFunction(name, f, returnType=None)[source]

NotImplemented

Parameters:
  • name
  • f
  • returnType
Returns:

setConf(key, value)[source]

NotImplemented

Parameters:
  • key
  • value
Returns:

sql(sqlQuery)[source]

NotImplemented

Parameters:sqlQuery
Returns:
table(tableName)[source]

NotImplemented

Parameters:tableName
Returns:
tableNames(dbName=None)[source]

NotImplemented

Parameters:dbName
Returns:
tables(dbName=None)[source]

NotImplemented

Parameters:dbName
Returns:
udf()[source]

NotImplemented

Returns:
uncacheTable(tableName)[source]

NotImplemented

Parameters:tableName
Returns:

dummy_spark.sql.types module

dummy_spark.sql.functions module