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

Ensure api call to create folders does not get called when creating a table #219

Merged
merged 4 commits into from
Mar 5, 2024

Conversation

ravjotbrar
Copy link
Contributor

Summary

See linked issue

Description

The existing code logic verifies whether the database property matches the object storage source. If it does, the code should avoid attempting schema creation via the REST API. However, when the object storage source is provided via a configuration block within a model, this condition fails because it only reads the object_storage_source value from the profiles.yml file. By modifying the condition to check the materialization type, the logic becomes more robust. This change ensures that schema creation is only attempted when the relation is a view.

Test Results

Ran all tests

Changelog

  • Added a summary of what this PR accomplishes to CHANGELOG.md

Related Issue

#195

@ravjotbrar ravjotbrar merged commit 86cd6ac into main Mar 5, 2024
ravjotbrar pushed a commit that referenced this pull request Jul 3, 2024
Bumps [parsedatetime](https://github.com/bear/parsedatetime) from 2.4 to
2.6.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/bear/parsedatetime/releases">parsedatetime's
releases</a>.</em></p>
<blockquote>
<h2>2.6</h2>
<p>Push out v2.6 to gather up local fixes and updates</p>
<p>PR <a
href="https://redirect.github.com/bear/parsedatetime/issues/244">#244</a>
Polished README.rst
PR <a
href="https://redirect.github.com/bear/parsedatetime/issues/242">#242</a>
fix pyicu import to suppress warnings
PR <a
href="https://redirect.github.com/bear/parsedatetime/issues/239">#239</a>
Fixed missing comma in seconds strings</p>
<p>Updated Pipfile and Makefile to:
- update and move packages to the &quot;dev&quot; section
- use Python 3.7 for pipenv
- install tox-pipenv plugin to try and fix Tox (currently doesn't)
- simplify tox.ini to try and fix Tox (didn't)
- move ci makefile target to the circle config</p>
<h2>2.5</h2>
<p>v2.5 release</p>
<p>PR <a
href="https://redirect.github.com/bear/parsedatetime/issues/222">#222</a>
Fix to sanitize abbreviated months from icu
PR <a
href="https://redirect.github.com/bear/parsedatetime/issues/223">#223</a>
typo in RU locale in abbreviation for January
PR <a
href="https://redirect.github.com/bear/parsedatetime/issues/224">#224</a>
Fix lint errors for flake8 v3.5.0
PR <a
href="https://redirect.github.com/bear/parsedatetime/issues/225">#225</a>
Add a constant for start hour
PR <a
href="https://redirect.github.com/bear/parsedatetime/issues/233">#233</a>
Add 'secs' and 'mins' into base units
PR <a
href="https://redirect.github.com/bear/parsedatetime/issues/226">#226</a>
Remove unused dependency on future</p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/bear/parsedatetime/blob/master/CHANGES.txt">parsedatetime's
changelog</a>.</em></p>
<blockquote>
<p>9 Oct 2021 - bear
PR <a
href="https://redirect.github.com/bear/parsedatetime/issues/261">#261</a>
Bump urllib3 from 1.25.9 to 1.26.5
PR <a
href="https://redirect.github.com/bear/parsedatetime/issues/255">#255</a>
support 'next 10 days' query
PR <a
href="https://redirect.github.com/bear/parsedatetime/issues/252">#252</a>
Include pytest.ini in source distributions, fixes tests
PR <a
href="https://redirect.github.com/bear/parsedatetime/issues/250">#250</a>
Update nl_NL.py
PR <a
href="https://redirect.github.com/bear/parsedatetime/issues/248">#248</a>
pyicu 'module' object has no attribute 'Locale'</p>
<pre><code>Update Pipfile to reference Python 3.9
Updated Copyright statement
</code></pre>
<p>31 May 2020 - bear
v2.6 release
bump version to v2.7</p>
<p>PR <a
href="https://redirect.github.com/bear/parsedatetime/issues/244">#244</a>
Polished README.rst
PR <a
href="https://redirect.github.com/bear/parsedatetime/issues/242">#242</a>
fix pyicu import to suppress warnings
PR <a
href="https://redirect.github.com/bear/parsedatetime/issues/239">#239</a>
Fixed missing comma in seconds strings</p>
<p>Updated Pipfile and Makefile to:
- update and move packages to the &quot;dev&quot; section
- use Python 3.7 for pipenv
- install tox-pipenv plugin to try and fix Tox (currently doesn't)
- simplify tox.ini to try and fix Tox (didn't)
- move ci makefile target to the circle config</p>
<p>Currently Tox is broken (see <a
href="https://redirect.github.com/tox-dev/tox-pipenv/issues/61">tox-dev/tox-pipenv#61</a>)</p>
<p>18 Nov 2019 - bear
v2.5 release</p>
<p>PR <a
href="https://redirect.github.com/bear/parsedatetime/issues/222">#222</a>
Fix to sanitize abbreviated months from icu
PR <a
href="https://redirect.github.com/bear/parsedatetime/issues/223">#223</a>
typo in RU locale in abbreviation for January
PR <a
href="https://redirect.github.com/bear/parsedatetime/issues/224">#224</a>
Fix lint errors for flake8 v3.5.0
PR <a
href="https://redirect.github.com/bear/parsedatetime/issues/225">#225</a>
Add a constant for start hour
PR <a
href="https://redirect.github.com/bear/parsedatetime/issues/233">#233</a>
Add 'secs' and 'mins' into base units
PR <a
href="https://redirect.github.com/bear/parsedatetime/issues/226">#226</a>
Remove unused dependency on future</p>
<p>14 May 2017 - bear
v2.4 release
v2.5 bump</p>
<pre><code>Issue
[#219](bear/parsedatetime#219) - remove
'setup_requires' from setup.py
</code></pre>
<p>10 Mar 2017 - bear
v2.3 release
v2.4 bump</p>
<pre><code>Issue
[#215](bear/parsedatetime#215) - tests fail in
March
</code></pre>
<p>02 Mar 2016 - bear</p>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/bear/parsedatetime/commit/c55337589ee582813182b74f2d3ae80e2fcd9738"><code>c553375</code></a>
force update</li>
<li><a
href="https://github.com/bear/parsedatetime/commit/55a2b1d16df3eb9a4977be5da0ccdfc7162235d5"><code>55a2b1d</code></a>
Updated Pipfile and Makefile to:</li>
<li><a
href="https://github.com/bear/parsedatetime/commit/50dc61787bfa703cb50d8dd0a46d7b19032e02b0"><code>50dc617</code></a>
Merge pull request <a
href="https://redirect.github.com/bear/parsedatetime/issues/242">#242</a>
from quantrocket-llc/master</li>
<li><a
href="https://github.com/bear/parsedatetime/commit/acb579820dc34aa1b9aaa15a3e0afd058fad7702"><code>acb5798</code></a>
Merge pull request <a
href="https://redirect.github.com/bear/parsedatetime/issues/244">#244</a>
from boxed/patch-2</li>
<li><a
href="https://github.com/bear/parsedatetime/commit/f0110909d06d48d31cdd408ea0a6764fc8b06e03"><code>f011090</code></a>
Update README.rst</li>
<li><a
href="https://github.com/bear/parsedatetime/commit/18837504778c0dd41ae412bdf86eb81b1be7cdd7"><code>1883750</code></a>
fix pyicu import to suppress warnings</li>
<li><a
href="https://github.com/bear/parsedatetime/commit/655783d5f96a1defd331da84478fb8f3efb0f3b9"><code>655783d</code></a>
Merge pull request <a
href="https://redirect.github.com/bear/parsedatetime/issues/239">#239</a>
from psav/psav/fix_missing_comma</li>
<li><a
href="https://github.com/bear/parsedatetime/commit/7a759c1f8ff7563f12ac2c1f2ea0b41452f61dec"><code>7a759c1</code></a>
Fixed missing comma in seconds strings</li>
<li><a
href="https://github.com/bear/parsedatetime/commit/bea2bdb56992d2ae639843cc8a961818ac394794"><code>bea2bdb</code></a>
Convert to using pipenv and simplify to python 3.7 and 2.7 for
testing</li>
<li><a
href="https://github.com/bear/parsedatetime/commit/04c095790f0a2f9b8d32f35cfbb8498e7f6dc9be"><code>04c0957</code></a>
v2.6 bump</li>
<li>Additional commits viewable in <a
href="https://github.com/bear/parsedatetime/compare/v2.4...v2.6">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=parsedatetime&package-manager=pip&previous-version=2.4&new-version=2.6)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jared <97905507+jlarue26@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: "Can not create a folder inside a [SOURCE]" when writing table into object storage
2 participants