jhchee opened a new issue, #8502:
URL: https://github.com/apache/hudi/issues/8502
**Describe the problem you faced**
I have created a table with 2 columns namely `userId` and `updatedAt`. I'm
passing new column in the `merge into` command. but gotten an exception.
```java
spark.sql("" +
"MERGE INTO target USING source ON target.userId =
source.userId " +
"WHEN MATCHED THEN UPDATE SET target.nested =
struct(source.colA), target.updatedAt = source.updatedAt " +
"WHEN NOT MATCHED THEN INSERT (userId, nested, updatedAt) " +
"VALUES (source.userId, struct(source.colA),
source.updatedAt)" +
"")
```
```
Cannot resolve 'target.nested
```
**To Reproduce**
Steps to reproduce the behavior:
1. Merge into command with new column specified.
2. Try setting `.config("hoodie.schema.on.read.enable", "true")` doesn't
help.
**Expected behavior**
The schema should evolve and detect that this is a new column.
A clear and concise description of what you expected to happen.
**Environment Description**
* Hudi version : 0.12.2
* Spark version : 3.3.1
* Hive version : -
* Hadoop version : -
* Storage (HDFS/S3/GCS..) : -
* Running on Docker? (yes/no) : -
**Additional context**
Add any other context about the problem here.
**Stacktrace**
```Add the stacktrace of the error.```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]