You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ossie.apache.org by jb...@apache.org on 2026/09/07 12:24:52 UTC
(ossie) branch main updated: fix(examples): use d_moy for the TPC-DS date_dim month field (#363)
This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ossie.git
The following commit(s) were added to refs/heads/main by this push:
new 0f87be8d fix(examples): use d_moy for the TPC-DS date_dim month field (#363)
0f87be8d is described below
commit 0f87be8d133f4e150efc4617130fb1af3cf6209d
Author: Kyoungmin Kim <ka...@gmail.com>
AuthorDate: Mon Sep 7 21:24:46 2026 +0900
fix(examples): use d_moy for the TPC-DS date_dim month field (#363)
* fix(orionbelt): bump stale fixture versions to 0.2.0.dev0
Two fixtures still declared version 0.1.1, which the schema's version
const rejects. No test loads either file directly, so this only affects
standalone validation of the fixtures.
Generated-by: Claude Code
* fix(examples): use d_moy for the TPC-DS date_dim month field
TPC-DS date_dim has no d_month_name column; the month column is d_moy.
Rename the field and its expression in the canonical example and in the
converter fixtures derived from it (orionbelt, omni, snowflake) so the
model resolves against a real TPC-DS schema.
Generated-by: Claude Code
---
.../omni/tests/fixtures/tpcds_omni/views/date_dim.view.yaml | 4 ++--
converters/orionbelt/tests/fixtures/obml_as_ossie.yaml | 2 +-
converters/orionbelt/tests/fixtures/tpcds_as_obml.yaml | 10 +++++-----
converters/orionbelt/tests/fixtures/tpcds_ossie.yaml | 8 ++++----
converters/orionbelt/tests/fixtures/tpcds_semantic_model.yaml | 6 +++---
.../tests/example_converted_tpcds_semantic_model.yaml | 6 +++---
examples/tpcds_semantic_model.yaml | 6 +++---
7 files changed, 21 insertions(+), 21 deletions(-)
diff --git a/converters/omni/tests/fixtures/tpcds_omni/views/date_dim.view.yaml b/converters/omni/tests/fixtures/tpcds_omni/views/date_dim.view.yaml
index 068c8088..3f31169a 100644
--- a/converters/omni/tests/fixtures/tpcds_omni/views/date_dim.view.yaml
+++ b/converters/omni/tests/fixtures/tpcds_omni/views/date_dim.view.yaml
@@ -57,8 +57,8 @@ dimensions:
- month
- quarter
- year
- d_month_name:
- description: Month name
+ d_moy:
+ description: Month of year (1-12)
synonyms:
- month
timeframes:
diff --git a/converters/orionbelt/tests/fixtures/obml_as_ossie.yaml b/converters/orionbelt/tests/fixtures/obml_as_ossie.yaml
index ef055ac6..11c8ccab 100644
--- a/converters/orionbelt/tests/fixtures/obml_as_ossie.yaml
+++ b/converters/orionbelt/tests/fixtures/obml_as_ossie.yaml
@@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.
-version: '0.1.1'
+version: '0.2.0.dev0'
semantic_model:
- name: sales_analytics
description: Sales, Returns, Shipments and Purchases Analytics
diff --git a/converters/orionbelt/tests/fixtures/tpcds_as_obml.yaml b/converters/orionbelt/tests/fixtures/tpcds_as_obml.yaml
index 80800baa..bc4484e8 100644
--- a/converters/orionbelt/tests/fixtures/tpcds_as_obml.yaml
+++ b/converters/orionbelt/tests/fixtures/tpcds_as_obml.yaml
@@ -137,10 +137,10 @@ dataObjects:
customExtensions:
- vendor: Ossie
data: '{"synonyms": ["quarter", "fiscal quarter"]}'
- d_month_name:
- code: d_month_name
+ d_moy:
+ code: d_moy
abstractType: date
- comment: Month name
+ comment: Month of year (1-12)
customExtensions:
- vendor: Ossie
data: '{"synonyms": ["month"]}'
@@ -299,9 +299,9 @@ dimensions:
dataObject: date_dim
column: d_quarter_name
resultType: date
- d_month_name:
+ d_moy:
dataObject: date_dim
- column: d_month_name
+ column: d_moy
resultType: date
c_customer_id:
dataObject: customer
diff --git a/converters/orionbelt/tests/fixtures/tpcds_ossie.yaml b/converters/orionbelt/tests/fixtures/tpcds_ossie.yaml
index c389f8fd..21ec6483 100644
--- a/converters/orionbelt/tests/fixtures/tpcds_ossie.yaml
+++ b/converters/orionbelt/tests/fixtures/tpcds_ossie.yaml
@@ -21,7 +21,7 @@
# This example demonstrates the Ossie Core Metadata Spec using the TPC-DS benchmark schema
# TPC-DS is a decision support benchmark with a realistic retail business model
-version: "0.1.1"
+version: "0.2.0.dev0"
semantic_model:
- name: tpcds_retail_model
@@ -202,12 +202,12 @@ semantic_model:
- "quarter"
- "fiscal quarter"
- - name: d_month_name
+ - name: d_moy
expression:
dialects:
- dialect: ANSI_SQL
- expression: d_month_name
- description: Month name
+ expression: d_moy
+ description: Month of year (1-12)
dimension:
is_time: true
ai_context:
diff --git a/converters/orionbelt/tests/fixtures/tpcds_semantic_model.yaml b/converters/orionbelt/tests/fixtures/tpcds_semantic_model.yaml
index 3cad52cd..df1f42c0 100644
--- a/converters/orionbelt/tests/fixtures/tpcds_semantic_model.yaml
+++ b/converters/orionbelt/tests/fixtures/tpcds_semantic_model.yaml
@@ -202,12 +202,12 @@ semantic_model:
- "quarter"
- "fiscal quarter"
- - name: d_month_name
+ - name: d_moy
expression:
dialects:
- dialect: ANSI_SQL
- expression: d_month_name
- description: Month name
+ expression: d_moy
+ description: Month of year (1-12)
dimension:
is_time: true
ai_context:
diff --git a/converters/snowflake/tests/example_converted_tpcds_semantic_model.yaml b/converters/snowflake/tests/example_converted_tpcds_semantic_model.yaml
index 78176668..a3ce260c 100644
--- a/converters/snowflake/tests/example_converted_tpcds_semantic_model.yaml
+++ b/converters/snowflake/tests/example_converted_tpcds_semantic_model.yaml
@@ -136,9 +136,9 @@ tables:
synonyms:
- quarter
- fiscal quarter
- - name: d_month_name
- expr: d_month_name
- description: Month name
+ - name: d_moy
+ expr: d_moy
+ description: Month of year (1-12)
synonyms:
- month
- name: customer
diff --git a/examples/tpcds_semantic_model.yaml b/examples/tpcds_semantic_model.yaml
index f192c189..3cb59852 100644
--- a/examples/tpcds_semantic_model.yaml
+++ b/examples/tpcds_semantic_model.yaml
@@ -215,12 +215,12 @@ semantic_model:
# Declares temporal role via is_time without a datatype annotation.
# Both datatype and is_time are independently optional.
- - name: d_month_name
+ - name: d_moy
expression:
dialects:
- dialect: ANSI_SQL
- expression: d_month_name
- description: Month name
+ expression: d_moy
+ description: Month of year (1-12)
dimension:
is_time: true
ai_context: