ahmedabu98 commented on issue #34613:
URL: https://github.com/apache/beam/issues/34613#issuecomment-2797978166

   Root error is `ValueError: No logical type registered for URN 
'beam:logical_type:javasdk_enum:v1'`
   
   this is a logical type URN (constructed 
[here](https://github.com/apache/beam/blob/bbb6d83e96f8fb7550f6d99c13c7ddd06f8c56a7/sdks/java/core/src/main/java/org/apache/beam/sdk/schemas/SchemaTranslation.java#L86))
 and points to the 
[EnumerationType](https://github.com/apache/beam/blob/bbb6d83e96f8fb7550f6d99c13c7ddd06f8c56a7/sdks/java/core/src/main/java/org/apache/beam/sdk/schemas/logicaltypes/EnumerationType.java#L41)
 that is used as a configuration field in SqlTransformSchemaTransformProvider: 
https://github.com/apache/beam/blob/bbb6d83e96f8fb7550f6d99c13c7ddd06f8c56a7/sdks/java/extensions/sql/expansion-service/src/main/java/org/apache/beam/sdk/extensions/sql/expansion/SqlTransformSchemaTransformProvider.java#L103
   
   The SchemaTransform's config uses field types that do not have a Python 
equivalent. Specifically, they are:
   - `"dialect"` using EnumerationType
   - `"tableproviders"` using EnumerationType
   - `"parameters"` using OneOfType
   
   I don't see SqlTransformSchemaTransformProvider being used anywhere 
currently, so I think a reasonable approach would be to re-evaluate the 
configuration schema and change any problematic fields to be simple primitive 
types that Python can recognize.


-- 
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: github-unsubscr...@beam.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to