yaooqinn commented on PR #38151:
URL: https://github.com/apache/spark/pull/38151#issuecomment-1274182525
```scala
withTempPath { dir =>
withTable("t") {
sql("SELECT '12' as col1, '12' as
col2").write.format(format).save(dir.toString)
sql(s"CREATE TABLE t (col1 char(3), col2 varchar(3)) using $format")
sql(s"ALTER TABLE t SET LOCATION '$dir'")
checkAnswer(spark.sql("select concat(col1, col2) from t"), Row("12
12"))
}
}
```
I mean a test case like the above. W/ this PR, the 1st case below is a
behavior change that needs a doc or unit test.
```
// length fits
12 + 12 = 12<space>12
// length overflow w/ significant characters
1234 + 12 = 1234
// length overflow w/ spaces
12<space><space> + 12 = 12<space><space>34
```
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]