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

Merge v3 into main #1680

Merged
merged 66 commits into from Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
0f54276
Set version to 3.0.0
Ekrekr Oct 17, 2023
b4d2b2f
Remove non bigquery warehouses (#1550)
Ekrekr Oct 18, 2023
3e2bb95
Remove dynamic warehouse inference, and more clearly differentiate co…
Ekrekr Oct 18, 2023
73e1f0b
Consolidate cli package (#1557)
Ekrekr Oct 26, 2023
d6945bf
Merge main to v3
Ekrekr Oct 31, 2023
94c029b
Fix some test issues
Ekrekr Nov 1, 2023
6c0cb13
Merge pull request #1563 from dataform-co/tmp-v3-merge
Ekrekr Nov 1, 2023
7c26450
Deprecate support for old type `.sql` files (#1564)
Ekrekr Nov 1, 2023
359e376
Add initial action config proto definitions (#1576)
Ekrekr Nov 14, 2023
273c9e8
Merge main to main_v3
Ekrekr Nov 15, 2023
5082527
Merge pull request #1579 from dataform-co/merge-to-v3-2
Ekrekr Nov 15, 2023
83f9457
Remove gen index in favor of main (#1571)
Ekrekr Nov 15, 2023
14f6562
Read workflow_settings.yaml (#1580)
Ekrekr Nov 20, 2023
2a8f584
Validate workflow settings fields (#1581)
Ekrekr Nov 22, 2023
d544851
Remove deprecated run cache and gcloud project ID fields (#1584)
Ekrekr Nov 22, 2023
98d8195
Move concurrency and action retries from project config proto to the …
Ekrekr Nov 24, 2023
bfb931b
Merge main into main_v3
Ekrekr Nov 24, 2023
83ed11b
Fix test
Ekrekr Nov 24, 2023
94c842f
Merge pull request #1590 from dataform-co/merge-to-v3-3
Ekrekr Nov 24, 2023
35cf7bf
Populate warehouse as BigQuery by default (#1591)
Ekrekr Nov 27, 2023
8a3fac4
Update v3 to use the apache 2.0 license (#1594)
Ekrekr Nov 28, 2023
e7e9c09
Stop using ProtobufJS's verify method (it doesn't do much) (#1596)
Ekrekr Dec 1, 2023
1137ca1
Better action proto constructors (#1597)
Ekrekr Dec 1, 2023
a0d4c69
Add basic actions.yaml and notebook support (#1595)
Ekrekr Dec 4, 2023
35bf7a3
Move custom variables test to the new testing structure (#1601)
Ekrekr Dec 4, 2023
cff5c5e
Add auto assertion database override to core test (#1602)
Ekrekr Dec 4, 2023
08be45f
Move core/tasks.ts to CLI, and minor cleanup (#1598)
Ekrekr Dec 4, 2023
b2cd68f
Add more test coverage of variables and project config overrides for …
Ekrekr Dec 6, 2023
14c5495
Add licenses as prefixes to output bundles (#1605)
Ekrekr Dec 7, 2023
4703af3
Throw a more interpretable error when old CLIs encounter new Core ver…
Ekrekr Dec 7, 2023
04eeaf5
Action builders and path utils fixes (#1606)
Ekrekr Dec 8, 2023
e6b06d9
Prevent non bq warehouse from being set in workflow settings (#1609)
Ekrekr Dec 11, 2023
13787c4
Strip notebook cell outputs (#1613)
Ekrekr Dec 12, 2023
2deeb1f
Add version to workflow settings (#1610)
Ekrekr Dec 12, 2023
cab2195
Move common target constructor methods to the action builder (#1626)
Ekrekr Dec 29, 2023
19bed39
Add basic support for actions.yaml reading SQL files as operations (#…
Ekrekr Jan 2, 2024
5a80b9e
Add support for declarations in action config files (#1630)
Ekrekr Jan 2, 2024
9ff72a8
Add support for Tables to action config files (#1631)
Ekrekr Jan 2, 2024
e67c935
Add action config support for the remaining SQL based action types (#…
Ekrekr Jan 3, 2024
9c18d69
Improve proto validation errors where possible (#1635)
Ekrekr Jan 3, 2024
63f042c
Make filenames defined in action config files be treated as relative …
Ekrekr Jan 4, 2024
e925197
Better errors for invalid declarations, add more test coverage (#1637)
Ekrekr Jan 4, 2024
ac8e703
Add an example of a workflow containing notebooks/SQL scripts, with t…
Ekrekr Jan 9, 2024
818c1b9
Make the CLI use and default to workflow_settings.yaml (#1648)
Ekrekr Jan 15, 2024
bc49654
Update Dataform CLI npm installs to best-effort (#1649)
Ekrekr Jan 16, 2024
8111ee0
Merge main into v3
Ekrekr Jan 18, 2024
65fd962
Merge pull request #1654 from dataform-co/merge-to-v3-4
Ekrekr Jan 18, 2024
4987628
Remove dead resolve code (#1652)
Ekrekr Jan 18, 2024
7909e1a
Make main_test more concise by making filenames optional (#1651)
Ekrekr Jan 18, 2024
9e7c1df
Remove more dead code, including navigator column descriptors and too…
Ekrekr Jan 18, 2024
f14c861
Remove warehouse option from the CLI, more tidying (#1653)
Ekrekr Jan 18, 2024
6d6aaa9
Make v3 JS API act the same as v2 (#1657)
Ekrekr Jan 22, 2024
2d98d42
Remove inline tables functionality (#1658)
Ekrekr Jan 23, 2024
5e7f615
Update proto to use a separate compiled graph, with UX review changes…
Ekrekr Jan 23, 2024
1ee32ae
Core path tidying (#1659)
Ekrekr Jan 29, 2024
fb5318b
Export configs proto, bump version (#1661)
Ekrekr Jan 29, 2024
fbcb808
Migrate core sqlx syntax and assertions context functions tests to _t…
Ekrekr Feb 1, 2024
023b160
Better cli errors during compilation (#1669)
Ekrekr Feb 5, 2024
b0f61fd
Replace cli spec tests with _test format (#1670)
Ekrekr Feb 6, 2024
fb5b253
Improve generated workflow_settings.yaml field order (#1671)
Ekrekr Feb 6, 2024
994203b
Fix config targets (#1673)
Ekrekr Feb 7, 2024
800e36d
Remove JS context from SQL files (#1672)
Ekrekr Feb 8, 2024
d898ca1
Lazy / stateless installation (#1675)
Ekrekr Feb 20, 2024
7b8bbf3
Don't check we are on main branch for pre-releases (#1664)
lewish Feb 21, 2024
d686544
Allow 'partitionBy' and 'clusterBy' params for bigquery materialized …
Ekrekr Feb 21, 2024
76fa762
Merge v3 into main
Ekrekr Feb 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 0 additions & 11 deletions .gitignore
Expand Up @@ -8,17 +8,6 @@ bazel-*

bazel-*

# TODO: Remove these.

build/
!!build/package.json
ts/protos/index.*
api/package-lock.json
cli/package-lock.json
core/package-lock.json
protos/package-lock.json
lerna-debug.log

**/.DS_Store

**/*.orig
Expand Down
223 changes: 202 additions & 21 deletions LICENSE
@@ -1,21 +1,202 @@
MIT License

Copyright (c) 2018 Tada Science Inc

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

1. Definitions.

"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.

"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.

"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.

"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.

"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.

"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.

"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).

"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.

"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."

"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.

2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.

3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.

4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:

(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and

(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and

(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and

(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.

You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.

5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.

6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.

7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.

8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.

9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
20 changes: 0 additions & 20 deletions WORKSPACE
Expand Up @@ -155,26 +155,6 @@ load(

_nodejs_image_repos()

# Postgres

container_pull(
name = "postgres",
# This digest is for tag "12.4".
digest = "sha256:b0cfe264cb1143c7c660ddfd5c482464997d62d6bc9f97f8fdf3deefce881a8c",
registry = "index.docker.io",
repository = "library/postgres",
)

# Trino (used to be called Presto)

container_pull(
name = "trino",
# This digest is for tag "351".
digest = "sha256:e97be2f4193b30cad176307665a7e334988059461f677d542ad8a62f68511133",
registry = "index.docker.io",
repository = "trinodb/trino",
)

# Gcloud SDK binaries.
load("//tools/gcloud:repository_rules.bzl", "gcloud_sdk")

Expand Down