This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Toto | |
{ | |
public void Main() | |
{ | |
final DataFrame source = GetDataFrame(); | |
final String querySelectSQL = flattenSchema(source.schema(), null); | |
source.registerTempTable("source"); | |
final DataFrame flattenData = sqlContext.sql("SELECT " + querySelectSQL + " FROM source") |