Skip to content

[CALCITE-3980] Improvement for creating RedisTable#1965

Closed
neoremind wants to merge 1 commit intoapache:masterfrom
neoremind:redis_adapter
Closed

[CALCITE-3980] Improvement for creating RedisTable#1965
neoremind wants to merge 1 commit intoapache:masterfrom
neoremind:redis_adapter

Conversation

@neoremind
Copy link
Contributor

@neoremind neoremind changed the title Improvement for creating RedisTable [CALCITE-3980] Improvement for creating RedisTable May 8, 2020
@DonnyZone
Copy link
Contributor

LGTM!
cc @XuQianJin-Stars

@XuQianJin-Stars
Copy link
Contributor

LGTM +1

@DonnyZone
Copy link
Contributor

@neoremind could you please modify the commit message following the document? Thanks!

@DonnyZone DonnyZone added the LGTM-will-merge-soon Overall PR looks OK. Only minor things left. label May 9, 2020
@neoremind
Copy link
Contributor Author

@DonnyZone Sure, done. Would you help to check? Many thanks. Also thanks Forward to look into this 😄

@hsyuan hsyuan closed this in 09b13cf May 10, 2020
jamesstarr pushed a commit to jamesstarr/calcite that referenced this pull request Mar 16, 2026
apache#370)

…sTable is created (Xu Zhang)

When creating RedisTable via ModelHandler, it relies on an instance
method RedisEnumerator#deduceRowType to extract field type map, redis
connection will be established and closed every time a table is created,
which is unnecessary and redundant, so simply make the method a static
one will solve the problem and make it more performant. CsvTable
implementation works the right way.

Close apache#1965

Co-authored-by: xu <xu.zx@alibaba-inc.com>
jamesstarr pushed a commit to jamesstarr/calcite that referenced this pull request Mar 16, 2026
apache#370)

…sTable is created (Xu Zhang)

When creating RedisTable via ModelHandler, it relies on an instance
method RedisEnumerator#deduceRowType to extract field type map, redis
connection will be established and closed every time a table is created,
which is unnecessary and redundant, so simply make the method a static
one will solve the problem and make it more performant. CsvTable
implementation works the right way.

Close apache#1965

Co-authored-by: xu <xu.zx@alibaba-inc.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

LGTM-will-merge-soon Overall PR looks OK. Only minor things left.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants