[
https://issues.apache.org/jira/browse/SPARK-47904?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dongjoon Hyun closed SPARK-47904.
---------------------------------
> Preserve case in Avro schema when using enableStableIdentifiersForUnionType
> ---------------------------------------------------------------------------
>
> Key: SPARK-47904
> URL: https://issues.apache.org/jira/browse/SPARK-47904
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 3.5.2, 4.0.0
> Reporter: Ivan Sadikov
> Assignee: Ivan Sadikov
> Priority: Major
> Labels: pull-request-available
> Fix For: 3.5.2, 4.0.0
>
>
> When enableStableIdentifiersForUnionType is enabled, all of the types are
> lowercased which creates a problem when field types are case-sensitive:
> {code:java}
> Schema.createEnum("myENUM", "", null, List[String]("E1", "e2").asJava),
> Schema.createRecord("myRecord2", "", null, false, List[Schema.Field](new
> Schema.Field("F", Schema.create(Type.FLOAT))).asJava){code}
> would become
> {code:java}
> struct<member_myenum: string, member_myrecord2: struct<f: float>> {code}
> but instead should be
> {code:java}
> struct<member_myENUM: string, member_myRecord2: struct<F: float>> {code}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]