cloud-fan commented on a change in pull request #25453: [WIP][SPARK-28730][SQL]
Configurable type coercion policy for table insertion
URL: https://github.com/apache/spark/pull/25453#discussion_r315281920
##########
File path:
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/analysis/DataSourceV2AnalysisSuite.scala
##########
@@ -205,11 +206,14 @@ abstract class DataSourceV2AnalysisSuite extends
AnalysisTest {
}
test("byName: fail nullable data written to required columns") {
- val parsedPlan = byName(requiredTable, table)
- assertNotResolved(parsedPlan)
- assertAnalysisError(parsedPlan, Seq(
- "Cannot write incompatible data to table", "'table-name'",
- "Cannot write nullable values to non-null column", "'x'", "'y'"))
+ withSQLConf(SQLConf.STORE_ASSIGNMENT_POLICY.key ->
Review comment:
we can set this config in `beforeAll` and unset it in `afterAll`
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]