Skip to content

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

Open
Watson1978 wants to merge 1 commit into
fluent:masterfrom
Watson1978:fix/all-tables-config-element
Open

in_sql: fix all_tables crash by passing a Config::Element to TableElement#configure#178
Watson1978 wants to merge 1 commit 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
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

1 participant