import java.sql.*;
import java.util.Properties;
public class source {
public static void main (String arg[]) throws SQLException {
//If necessary, add the code for connecting to RisingWave here.
String sqlQuery = "CREATE TABLE walk (distance INT, duration INT) WITH " +
"(connector = 'datagen'," +
"fields.distance.kind = 'sequence'," +
"fields.distance.start = '1'," +
"fields.distance.end = '60'," +
"fields.duration.kind = 'sequence'," +
"fields.duration.start = '1'," +
"fields.duration.end = '30'," +
"datagen.rows.per.second='15'," +
"datagen.split.num = '1') " +
"FORMAT PLAIN ENCODE JSON";
PreparedStatement st = conn.prepareStatement(sqlQuery); //Define a query and pass it to a PreparedStatement object.
st.executeQuery(); //Execute the query.
conn.close(); //Close the connection.
}
}