dichlorodiphen commented on code in PR #60354:
URL: https://github.com/apache/spark/pull/60354#discussion_r4557852645
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/avroSqlFunctions.scala:
##########
@@ -134,13 +136,30 @@ case class FromAvro(
}
override lazy val replacement: Expression = {
- val schemaValue: String = jsonFormatSchema.eval() match {
+ val conf = SQLConf.get
+ if (conf.getConf(SQLConf.MAP_KEY_DEDUP_POLICY) == mapKeyDedupPolicy) {
Review Comment:
Yeah, I'm inclined to dismiss this one, maybe with a comment so future AIs
don't flag it. I guess it depends on the philosophy of this community: do we
commit to fixing every possible bug, no matter how uncommon? Or do we choose
our battles?
IIUC, this would require something ridiculous like
```
map('mode',
element_at(
map(0.0D, 'PERMISSIVE', -0.0D, 'PERMISSIVE'),
0.0D))
```
as an option to the avro function plus other conditions like a second
SparkSession with a different setting for an esoteric conf. Someone would have
to be trying to blow up their own query for us to see this.
--
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]