Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify get_tables_by_pattern_sql #13

Merged
merged 2 commits into from
Dec 19, 2022
Merged

Conversation

mdesmet
Copy link
Contributor

@mdesmet mdesmet commented Dec 16, 2022

No description provided.

@mdesmet mdesmet force-pushed the bug/get_tables_by_pattern branch from 3add689 to 243299a Compare December 16, 2022 14:00
@mdesmet mdesmet force-pushed the bug/get_tables_by_pattern branch from 243299a to abc969b Compare December 16, 2022 22:13
@mdesmet mdesmet changed the title Use regexp_like in get_tables_by_pattern_sql Simplify get_tables_by_pattern_sql Dec 19, 2022
@mdesmet mdesmet merged commit ae9f3e1 into main Dec 19, 2022
@mdesmet mdesmet deleted the bug/get_tables_by_pattern branch December 19, 2022 09:43
@@ -11,8 +11,7 @@ RUN apt-get update && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/
RUN pip3 install --upgrade pip
RUN mkdir ${DBT_DIR}
# TODO: change with release version
RUN pip install git+https://github.com/starburstdata/dbt-trino.git
RUN pip install dbt-trino==1.3

Choose a reason for hiding this comment

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

RUN pip install dbt-trino~=1.3.*

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, too fast. This is indeed not working as expected.

It seems however that RUN pip install dbt-trino==1.3.* also works.

Choose a reason for hiding this comment

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

~= will always install the latest version compatible with the pattern.
== won't update to the newest version if the older version which matches the pattern is already installed.

So I think ~= is slightly better here.

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.

3 participants