Skip to content

Add FDW server options support - #71

Merged
gmusya merged 2 commits into
mainfrom
fdw_options2
Jul 29, 2026
Merged

Add FDW server options support#71
gmusya merged 2 commits into
mainfrom
fdw_options2

Conversation

@andr-sokolov

Copy link
Copy Markdown
Contributor

Add possibility to configure TEA using SQL and don't use tea-config.json.
Settings can be got from FDW server options. When there is no
read_config_file=false in FDW server options, setting are read from
tea-config.json.
Not all setting are supported now. Other setting will be added in the future.
Add the StrToCatalogType function, because now string casting to CatalogType is
executed in two functions.

Add possibility to configure TEA using SQL and don't use tea-config.json.
Settings can be got from FDW server options. When there is no
read_config_file=false in FDW server options, setting are read from
tea-config.json.
Not all settings are supported now. Other settings will be added in the future.
Add the StrToCatalogType function, because now string casting to CatalogType is
executed in two functions.
Comment thread tea/common/config.cpp
Comment on lines +554 to +555
LoadStr(config.catalog.rest_url, "catalog_rest_url");
LoadStr(config.catalog.rest_warehouse_id, "catalog_rest_warehouse_id");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
LoadStr(config.catalog.rest_url, "catalog_rest_url");
LoadStr(config.catalog.rest_warehouse_id, "catalog_rest_warehouse_id");
#ifdef USE_REST
LoadStr(config.catalog.rest_url, "catalog_rest_url");
LoadStr(config.catalog.rest_warehouse_id, "catalog_rest_warehouse_id");
#endif

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some other places where #ifdef USE_REST is missing also

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can consider always building with rest, but let's use #ifdef for now

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@gmusya gmusya left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gmusya
gmusya merged commit 11d6293 into main Jul 29, 2026
14 checks passed
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.

2 participants