Skip to content

in_sql: fix all_tables crash by passing a Config::Element to TableElement#configure#178

Merged
kenhys merged 2 commits into
fluent:masterfrom
Watson1978:fix/all-tables-config-element
Jul 10, 2026
Merged

in_sql: fix all_tables crash by passing a Config::Element to TableElement#configure#178
kenhys merged 2 commits into
fluent:masterfrom
Watson1978:fix/all-tables-config-element

Conversation

@Watson1978

Copy link
Copy Markdown
Contributor

all_tables built each discovered table by passing a plain Hash to TableElement#configure,
but Fluent::Configurable#configure expects a Fluent::Config::Element and calls #corresponding_proxies on it,
so every discovered table raised NoMethodError and #start failed.
Wrap the attributes in a Fluent::Config::Element.

update_column defaults to nil, so it no longer needs to be passed explicitly.

Fixes #177

…ment#configure

all_tables built each discovered table by passing a plain Hash to
TableElement#configure, but Fluent::Configurable#configure expects a
Fluent::Config::Element and calls #corresponding_proxies on it, so every
discovered table raised NoMethodError and #start failed. Wrap the attributes in
a Fluent::Config::Element. update_column defaults to nil, so it no longer needs
to be passed explicitly.

Fixes fluent#177

Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
@Watson1978 Watson1978 requested a review from kenhys July 9, 2026 05:43
Comment thread test/plugin/test_in_sql.rb Outdated
Co-authored-by: Kentaro Hayashi <kenhys@gmail.com>
Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
@Watson1978 Watson1978 force-pushed the fix/all-tables-config-element branch from 346e9d1 to 5c88dee Compare July 10, 2026 04:39
@Watson1978 Watson1978 requested a review from kenhys July 10, 2026 04:39
@kenhys kenhys merged commit d30357e into fluent:master Jul 10, 2026
37 checks passed
@Watson1978 Watson1978 deleted the fix/all-tables-config-element branch July 10, 2026 04:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

all_tables true crashes on startup: NoMethodError: undefined method 'corresponding_proxies' for Hash

2 participants