[ 
https://issues.apache.org/jira/browse/FLINK-8538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16358372#comment-16358372
 ] 

Fabian Hueske commented on FLINK-8538:
--------------------------------------

Regarding the options:

* Option 1: This was my initial idea. But Timo is right, we would tie the 
format to the Table API which is not a good choice, IMO.
* Option 2: I don't think this will work. What if a schema contains two NUMBER 
types?
* Option 3: How would this help? We would have a custom number type that nobody 
can properly handle.

I think the best approach to support JSON Schema would be to always return 
BigDecimal types.

> Add a Kafka table source factory with JSON format support
> ---------------------------------------------------------
>
>                 Key: FLINK-8538
>                 URL: https://issues.apache.org/jira/browse/FLINK-8538
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Table API & SQL
>            Reporter: Timo Walther
>            Assignee: Xingcan Cui
>            Priority: Major
>
> Similar to CSVTableSourceFactory a Kafka table source factory for JSON should 
> be added. This issue includes improving the existing JSON descriptor with 
> validation that can be used for other connectors as well. It is up for 
> discussion if we want to split the KafkaJsonTableSource into connector and 
> format such that we can reuse the format for other table sources as well.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to