我不熟悉Spark环境。我在我的项目中使用了Spark SQL。我想在Spark SQL临时表中创建自动增量字段。我创建了UDF,但它无法正常工作。我在互联网上尝试过各种示例。这是我的Java POJO类: public class AutoIcrementId {
int lastValue;
public int evaluate() {
lastValue++
我只想要一个如下所示的表格。 create table android_data (
index int unsigned primary key AUTO_INCREMENT,
phone int not null,
sensorID int not null,
press int not null,
temp int not null,
CREATE TABLE DUser (
[ID] INT NOT NULL, [DUser_Id] VARCHAR(45) NULL,
[Name] VARCHAR (70) NOT NULL,
[DOB] DATE NOT NULL,
[Password] VARCHAR (30) NOT NULL,
[Email] VARCHAR (70) NOT NULL,