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

Jark Wu commented on FLINK-18158:
---------------------------------

Yes. In spark, schema inference is deriving schema from data or from metadata.

My thought is more like 

{code:java}
CREATE TABLE avro WITH (format=avro, avro.schema='...')
{code}

where the schema part is ommited and inferred from avro schema string. 


If I remember correctly, [~twalthr] also has an idea to have a built-in 
function (maybe {{from_avro(data, schemaString)}}?) which will automantically 
inference the schema and decode data. 


> Add a utility to create a DDL statement from avro schema
> --------------------------------------------------------
>
>                 Key: FLINK-18158
>                 URL: https://issues.apache.org/jira/browse/FLINK-18158
>             Project: Flink
>          Issue Type: Improvement
>          Components: Table SQL / API
>            Reporter: Dawid Wysakowicz
>            Priority: Major
>
> User asked if there is a way to create a TableSchema/Table originating from 
> avro schema. 
> https://lists.apache.org/thread.html/r9bd43449314230fad0b627a170db05284c9727371092fc275fc05b74%40%3Cuser.flink.apache.org%3E



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to