Skip to content

Support query pass-through for JDBC and Elasticsearch connectors#12315

Closed
kasiafi wants to merge 2 commits intotrinodb:masterfrom
kasiafi:341PTFBackup
Closed

Support query pass-through for JDBC and Elasticsearch connectors#12315
kasiafi wants to merge 2 commits intotrinodb:masterfrom
kasiafi:341PTFBackup

Conversation

@kasiafi
Copy link
Copy Markdown
Member

@kasiafi kasiafi commented May 10, 2022

This PR introduces "query pass-through" Polymorphic Table Functions for Elasticsearch and JDBC-based connectors.

List of connectors supporting the remote_query function:

  • Elasticsearch
  • Druid
  • MemSql
  • MySql
  • Oracle
  • PostgreSql
  • Redshift
  • SqlServer
  • MariaDB

not yet implemented:

  • ClickHouse
  • Phoenix

@findepi
Copy link
Copy Markdown
Member

findepi commented May 10, 2022

What happens when the remote_query is called with an INSERT or CREATE TABLE statement?

@kasiafi
Copy link
Copy Markdown
Member Author

kasiafi commented May 10, 2022

What happens when the remote_query is called with an INSERT or CREATE TABLE statement?

It should fail; I'll add tests.

@kasiafi kasiafi closed this May 10, 2022
@kasiafi
Copy link
Copy Markdown
Member Author

kasiafi commented May 10, 2022

Closing in favour of #12324 and #12325

@kasiafi
Copy link
Copy Markdown
Member Author

kasiafi commented May 20, 2022

What happens when the remote_query is called with an INSERT or CREATE TABLE statement?
It should fail; I'll add tests.

I added tests with CREATE and INSERT statements in #12325. I will add similar tests for Elasticsearch, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants