Skip to content

Commit

Permalink
Merge branch 'current' into unit-testing
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewshaver authored Feb 14, 2024
2 parents 6b8e034 + 35bd14c commit 11fc966
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
8 changes: 4 additions & 4 deletions website/docs/docs/build/saved-queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ To define a saved query, refer to the following parameters:
| `description` | String | Required | A description of the saved query. |
| `query_params` | Structure | Required | Contains the query parameters. |
| `query_params::metrics` | List or String | Optional | A list of the metrics to be used in the query as specified in the command line interface. |
| `query_params::group_bys` | List or String | Optional | A list of the Entities and Dimensions to be used in the query, which include the `Dimension` or `TimeDimension`. |
| `query_params::where` | List or String | Optional | A list of string which may include the `Dimension` or `TimeDimension` objects. |
| `exports` | List or Structure | Optional | A list of exports to be specified with the exports structure. |
| `query_params::group_by` | List or String | Optional | A list of the Entities and Dimensions to be used in the query, which include the `Dimension` or `TimeDimension`. |
| `query_params::where` | List or String | Optional | A list of strings that may include the `Dimension` or `TimeDimension` objects. |
| `exports` | List or Structure | Optional | A list of exports to be specified within the exports structure. |
| `exports::name` | String | Required | Name of the export object. |
| `exports::config` | List or Structure | Required | A config section for any parameters specifying the export. |
| `exports::config::export_as` | String | Required | The type of export to run. Options include table or view currently and cache in the near future. |
| `exports::config::schema` | String | Optional | The schema used for creating the table or view. This option cannot be used for caching. |
| `exports::config::schema` | String | Optional | The schema for creating the table or view. This option cannot be used for caching. |
| `exports::config::alias` | String | Optional | The table alias to use to write the table or view. This option cannot be used for caching. |

All metrics in a saved query need to use the same dimensions in the `group_by` or `where` clauses.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ This section identifies the parts of your `profiles.yml` that aren't specific to
[use_experimental_parser](/reference/global-configs/parsing): <true | false>
[static_parser](/reference/global-configs/parsing): <true | false>
[cache_selected_only](/reference/global-configs/cache): <true | false>
[populate_cache](/reference/global-configs/cache): <true | false>

<profile-name>:
target: <target-name> # this is the default target
Expand Down
8 changes: 4 additions & 4 deletions website/docs/docs/dbt-cloud-apis/sl-graphql.md
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ mutation {
createQuery(
environmentId: BigInt!
metrics: [{name: "food_order_amount"}]
groupBy: [{name: "metric_time}, {name: "customer__customer_type"}]
groupBy: [{name: "metric_time"}, {name: "customer__customer_type"}]
) {
queryId
}
Expand Down Expand Up @@ -463,7 +463,7 @@ mutation {
createQuery(
environmentId: BigInt!
metrics: [{name: "food_order_amount"}, {name: "order_gross_profit"}]
groupBy: [{name: "metric_time, grain: MONTH}, {name: "customer__customer_type"}]
groupBy: [{name: "metric_time", grain: MONTH}, {name: "customer__customer_type"}]
) {
queryId
}
Expand Down Expand Up @@ -578,7 +578,7 @@ mutation {
createQuery(
environmentId: BigInt!
metrics: [{name:"food_order_amount"}, {name: "order_gross_profit"}]
groupBy: [{name:"metric_time, grain: MONTH}, {name: "customer__customer_type"}]
groupBy: [{name:"metric_time", grain: MONTH}, {name: "customer__customer_type"}]
limit: 10
) {
queryId
Expand All @@ -595,7 +595,7 @@ mutation {
compileSql(
environmentId: BigInt!
metrics: [{name:"food_order_amount"} {name:"order_gross_profit"}]
groupBy: [{name:"metric_time, grain: MONTH}, {name:"customer__customer_type"}]
groupBy: [{name:"metric_time", grain: MONTH}, {name:"customer__customer_type"}]
) {
sql
}
Expand Down
6 changes: 3 additions & 3 deletions website/docs/docs/use-dbt-semantic-layer/exports.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: "Use exports to materialize tables to the data platform on a schedu
sidebar_label: "Materialize with exports"
---

# Materialize queries with exports <Lifecycle status='new'/>
# Materialize queries with exports <Lifecycle status='new' />

The exports feature in the dbt Semantic Layer enhances the [saved queries](/docs/build/saved-queries) by allowing you to materialize commonly used queries directly within your data platform.

Expand Down Expand Up @@ -50,9 +50,9 @@ saved_queries:
query_params:
metrics:
- YOUR_METRIC_NAME
group_bys:
group_by:
- TimeDimension()
- ... # Additional group_bys
- ... # Additional group_by
where:
- ... # Additional where clauses
exports:
Expand Down
4 changes: 2 additions & 2 deletions website/docs/reference/global-configs/yaml-configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ config:

<VersionBlock firstVersion="1.2">

The exception: Some global configurations are actually set in `dbt_project.yml`, instead of `profiles.yml`, because they control where dbt places logs and artifacts. Those file paths are always relative to the location of `dbt_project.yml`. For more details, see ["Log and target paths"](#log-and-target-paths) below.
The exception: Some global configurations are actually set in `dbt_project.yml`, instead of `profiles.yml`, because they control where dbt places logs and artifacts. Those file paths are always relative to the location of `dbt_project.yml`. For more details, refer to [Log and target paths](/reference/global-configs/logs#log-and-target-paths).

</VersionBlock>
</VersionBlock>
5 changes: 2 additions & 3 deletions website/src/components/lifeCycle/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@ const fontColors = {
};

export default function Lifecycle(props) {
if (!props.status || (Array.isArray(props.status) && props.status.length === 0)) {
const statuses = props.status?.split(',')
if (!props.status || !statuses?.length) {
return null;
}
// Check if props.status is an array or a single value
const statuses = Array.isArray(props.status) ? props.status : [props.status];

return (
<>
Expand Down
2 changes: 1 addition & 1 deletion website/vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"redirects": [
{
"source": "/docs/cloud/about-cloud/regions-ip-addresses",
"destination": "/docs/cloud/about-cloud/accesss-regions-ip-addresses",
"destination": "/docs/cloud/about-cloud/access-regions-ip-addresses",
"permanent": true
},
{
Expand Down

0 comments on commit 11fc966

Please sign in to comment.