Skip to content

Introduce TemporaryRelation #13260

Merged
Praveen2112 merged 1 commit intotrinodb:masterfrom
Praveen2112:data_setup_cleanup
Jul 27, 2022
Merged

Introduce TemporaryRelation #13260
Praveen2112 merged 1 commit intotrinodb:masterfrom
Praveen2112:data_setup_cleanup

Conversation

@Praveen2112
Copy link
Member

DataSetup has a restriction that its implementation Data source should support SQL compatible
CREATE and INSERT operation. TemporaryRelation remove this restriction, thereby allowing support
for additional Data sources.

Extracted from this comment - https://github.com/trinodb/trino/pull/8474/files#r674815466

Description

Is this change a fix, improvement, new feature, refactoring, or other?

Refactoring

Is this a change to the core query engine, a connector, client library, or the SPI interfaces? (be specific)

How would you describe this change to a non-technical end user or system administrator?

Refactoring in tests

Related issues, pull requests, and links

Documentation

(x) No documentation is needed.
( ) Sufficient documentation is included in this PR.
( ) Documentation PR is available with #prnumber.
( ) Documentation issue #issuenumber is filed, and can be handled later.

Release notes

(x) No release notes entries required.
( ) Release notes entries required with the following suggested text:

# Section
* Fix some things. ({issue}`issuenumber`)

@Praveen2112 Praveen2112 requested review from findepi and hashhar July 20, 2022 13:22
@cla-bot cla-bot bot added the cla-signed label Jul 20, 2022
@hashhar
Copy link
Member

hashhar commented Jul 21, 2022

It will be easier to see how useful this is (or whether interface has limitations) with a non-TestTable implementation as well. Kudu/Phoenix might be a good place to start since both require some additional properties during CREATE TABLE.

Druid/Pinot/Kafka are the end-goal IMO but maybe too much work for this PR.

@Praveen2112
Copy link
Member Author

I could raise a follow up PR for Druid. It could be too big for this PR

@Praveen2112
Copy link
Member Author

@hashhar It is being used here - #13335. Does it solve the intended problem ?

DataSetup has a restriction that its implementation Data source should support SQL compatible
CREATE and INSERT operation. TemporaryRelation remove this restriction, thereby allowing support
for additional Data sources.
@Praveen2112 Praveen2112 merged commit 45ea2a5 into trinodb:master Jul 27, 2022
@github-actions github-actions bot added this to the 392 milestone Jul 27, 2022
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.

3 participants