Here I create Struct Type(schema)and applied in Data set, And Data successfully created as structured Table format,
Dataset<Row>result=df1.select(functions.from_json(functions.col("value"),struct)
.as("data"))
.select("data.*");
But my Question is when i applied group by function for worktime column it indicate error??
Dataset<Row> df2=result.groupBy("data.worktime"); //.groupBy("worktime")
Thanks in Advance!!
Comments
Post a Comment