Spark SQL:在哪里可以找到sqlContext.sql的SQL语法定义?

时间:2016-04-26 07:10:09

标签: sql apache-spark apache-spark-sql

在哪里可以找到var jsonstring = [{ "key01": [10, "Key01 Description"], "key02": [false, "It's a false value"], "key03": [null, "Testing Null"], "key04": ["tests", "Another Test Value"], "key05": [ [25, 50], "Some testing values" ] }, { "key10": [100, "Key10 Value"], "key11": [true, "It's a true value for key11"], "key12": [null, "key12 values is Null"], "key13": ["Testing", "Another Test Value for key13"], "key14": [ [10, 20], "Some other testing values" ], "key15": ["Test Name", "Name of the key15"], "key16": null, //Test Data "key17": 'Fake Name' //Test Data }]; var op = jsonstring.map(function(item) { for (var i in item) { item[i] = Array.isArray(item[i]) ? item[i][0] : item[i]; //If `item[i]` is not an array } return item; }); console.log(op);接受的SQL的正式语法定义? 我想知道可用的功能和功能以及它们如何映射到sqlContext.sql()(和DataFrame)提供的功能。例如,在DataSet中,表是什么?一个SELECT * FROM table

谢谢!

0 个答案:

没有答案