Код: Выделить всё
class C {
A a;
B b;
}
Код: Выделить всё
Dataset joinedRecords =
A_records
.as("A")
.join(
B_records.as("B"),
functions
.col("A.uuid")
.equalTo(functions.col("B.uuid")),
"inner")
.withColumn("a", functions.struct("A.*"))
.withColumn("b", functions.struct("B.*"))
.select(
functions.col("a"), functions.col("b"))
.as(Encoders.bean(C.class));
Код: Выделить всё
Error while decoding: java.lang.IllegalArgumentException: argument type mismatch
initializejavabean(newInstance(class
Подробнее здесь: https://stackoverflow.com/questions/792 ... -struct-fi
Мобильная версия