BaldDemian commented on issue #3540: URL: https://github.com/apache/fory/issues/3540#issuecomment-4196767988
I reproduced this failure and did some research. From the log, `datetime.date` is wrongly treated as `STRUCT` (`TypeId` being 27) by the `pyfory.format.infer.get_type_id` function. The root cause is this function: https://github.com/apache/fory/blob/d89dd0c9941375ba4ba09e94698df7516e08db20/python/pyfory/format/infer.py#L194-L202 In line 195, `datetime.date` is not in `builtins` so line 196 is called, inside `visit_customized`: https://github.com/apache/fory/blob/d89dd0c9941375ba4ba09e94698df7516e08db20/python/pyfory/format/infer.py#L187-L192 A `struct` with `TypeId` 27 is returned. -- 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]
