Skip to content

Commit

Permalink
fix: cloudquery-oss-directory should import description (#1360)
Browse files Browse the repository at this point in the history
* Minor, we get the SQL dialect from .sqlfluff now, so we don't need to
  explicitly flag it
  • Loading branch information
ryscheng committed May 3, 2024
1 parent 873d6b2 commit 2753d57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .lintstagedrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"prettier --ignore-path .gitignore --log-level warn --check"
],
"warehouse/dbt/**/*.sql": [
"poetry run sqlfluff fix -f --dialect bigquery",
"poetry run sqlfluff lint --dialect bigquery"
"poetry run sqlfluff fix -f",
"poetry run sqlfluff lint"
]
}
2 changes: 2 additions & 0 deletions warehouse/cloudquery-oss-directory/src/tables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export const getTables = async (options: TableOptions): Promise<Table[]> => {
newColumn("display_name", {
notNull: true,
}),
newColumn("description", {}),
newColumn("version", {
type: new Int64(),
}),
Expand Down Expand Up @@ -135,6 +136,7 @@ export const getTables = async (options: TableOptions): Promise<Table[]> => {
newColumn("display_name", {
notNull: true,
}),
newColumn("description", {}),
newColumn("github", {
type: new JSONType(),
// Ideally we'd be able to use structs to more precisely specify the
Expand Down

0 comments on commit 2753d57

Please sign in to comment.