+1 for the FLIP, thanks Shammon for driving this.

JDBC is quite useful in OLAP scenarios, supporting JDBC would enable Flink
to be used with existing tools, such as Tableau.

Regarding the JDBC interfaces listed in the FLIP, I think they looks good
already. Besides `java.sql.Driver`, have you considered also adding support
for `javax.sql.DataSource` interface?

Jingsong Li <jingsongl...@gmail.com> 于2023年3月1日周三 17:53写道:

> Thanks Shammon for driving.
>
> Big +1 for this.
>
> I heard that many users want to use FlinkGateway + JDBC to do some
> queries, but at present, only Hive JDBC can be used. It is Hive
> dialect by default, and the experience is also different from
> FlinkSQL. We need to have our own JDBC.
>
> I took a look at your `Public Interface` part, only
> `FlinkResultSet.getRowKind` is a true new interface, others are just
> implementations.
>
> If the user does not cast into a FlinkResultSet, will there be serious
> consequences here (RowKind is ignored)?
>
> Best,
> Jingsong
>
> On Wed, Mar 1, 2023 at 4:59 PM Shammon FY <zjur...@gmail.com> wrote:
> >
> > Hi devs,
> >
> > I'd like to start a discussion about FLIP-293: Introduce Flink Jdbc
> Driver
> > For Sql Gateway[1].
> >
> > FLIP-275[2] supports remote sql client based on gateway, users can
> interact
> > with gateway by flink console. However, for users who create session
> > clusters with Flink, they'd like to use Jdbc Driver to interact with the
> > gateway in their applications, such as olap queries..
> >
> > I have discussed this proposal with @shengkaifang and @jinsonglee. In
> this
> > FLIP, we'd like to introduce Jdbc Driver for gateway. Users can use Jdbc
> > Driver to submit their queries and get results like a database in their
> > applications.
> >
> > Looking forward to your feedback, thanks.
> >
> >
> > [1]
> >
> https://cwiki.apache.org/confluence/display/FLINK/FLIP-293%3A+Introduce+Flink+Jdbc+Driver+For+Sql+Gateway
> > [2]
> >
> https://cwiki.apache.org/confluence/display/FLINK/FLIP-275%3A+Support+Remote+SQL+Client+Based+on+SQL+Gateway
> >
> >
> > Best,
> > Shammon
>


-- 

Best,
Benchao Li

Reply via email to