We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
public class TestAggregateFunction extends AggregateFunction<String, TestAggregateFunction.TestAggregateAcc> { public void accumulate(TestAggregateAcc acc, String param1, String param2, String param3) { acc.test = param1 + param2 + param3; } @Override public String getValue(TestAggregateAcc accumulator) { return accumulator.test; } @Override public TestAggregateAcc createAccumulator() { return new TestAggregateAcc(); } public static class TestAggregateAcc { public String test; } }
create function test_aggregate as 'com.hw.lineage.flink.aggregatefunction.TestAggregateFunction'
String sql = "INSERT INTO dwd_hudi_users " + "SELECT " + " id ," + " name ," + " test_aggregate(concat_ws('_', name, email), address, 'test')," + " birthday ," + " ts ," + " DATE_FORMAT(birthday, 'yyyyMMdd') " + "FROM" + " ods_mysql_user_detail group by id, name, birthday, ts ";
context.execute("CREATE TABLE IF NOT EXISTS ods_mysql_user_detail (" + " id BIGINT PRIMARY KEY NOT ENFORCED ," + " name STRING ," + " birthday TIMESTAMP(3) ," + " ts TIMESTAMP(3) ," + " email STRING ," + " address STRING ," + " proc_time as proctime() " + ") WITH ( " + " 'connector' = 'mysql-cdc' ," + " 'hostname' = '127.0.0.1' ," + " 'port' = '3306' ," + " 'username' = 'root' ," + " 'password' = 'xxx' ," + " 'server-time-zone' = 'Asia/Shanghai' ," + " 'database-name' = 'demo' ," + " 'table-name' = 'users' " + ")");
The text was updated successfully, but these errors were encountered:
HamaWhiteGG#125 HamaWhiteGG#126 support parse UDTF which the number o…
63a3b96
…f input and argument is equal
Merge pull request #127 from jeff-zou/dev
cd81704
#125 #126 support parse UDTF which the number of input and argument is equal
No branches or pull requests
create function test_aggregate as 'com.hw.lineage.flink.aggregatefunction.TestAggregateFunction'
The text was updated successfully, but these errors were encountered: