flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From twalthr <...@git.apache.org>
Subject [GitHub] flink issue #3107: [FLINK-5441] [table] Directly allow SQL queries on a Tabl...
Date Mon, 30 Jan 2017 14:24:08 GMT
Github user twalthr commented on the issue:

    @KurtYoung I agree that this syntax can be misused like `table.sql("SELECT * FROM otherTable")`.
But right now it is very inconvenient to always register a table first, especially if you
want to define multiple queries subsequently.
    We could also think about `env.sql("SELECT * FROM _ JOIN _", table, otherTable)`. Other
suggestions are very welcome.
    Another idea that just came to my mind. We could also use the `toString` method of a Table.
This method could implicitly register the Table under a unique name and return that. Then
we could support `env.sql(s"SELECT * FROM $table JOIN $otherTable")`.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message