Skip to content

Commit e478acb

Browse files
Merge pull request #1473 from gooddata/snapshot-master-d3c7866a-to-rel/dev
[bot] Merge master/d3c7866a into rel/dev
2 parents 3fe5c96 + d3c7866 commit e478acb

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

packages/gooddata-sdk/src/gooddata_sdk/catalog/workspace/declarative_model/workspace/logical_model/dataset/dataset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,6 @@ class CatalogDeclarativeReference(Base):
208208
source_columns: list[str] | None = None
209209
source_column_data_types: list[str] | None = None
210210
sources: list[CatalogDeclarativeReferenceSource] | None = None
211-
is_nullable: bool | None = None
212-
null_value: str | None = None
213211

214212
@staticmethod
215213
def client_class() -> type[DeclarativeReference]:
@@ -231,6 +229,8 @@ class CatalogDeclarativeReferenceSource(Base):
231229
column: str
232230
target: CatalogGrainIdentifier
233231
data_type: str | None = None
232+
is_nullable: bool | None = None
233+
null_value: str | None = None
234234

235235
@staticmethod
236236
def client_class() -> type[DeclarativeReferenceSource]:

packages/gooddata-sdk/tests/catalog/fixtures/data_sources/demo_scan_pdm_and_generate_logical_model.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ interactions:
112112
sources:
113113
- column: campaign_id
114114
dataType: INT
115+
isNullable: true
115116
target:
116117
id: campaign_id
117118
type: attribute
@@ -321,6 +322,7 @@ interactions:
321322
sources:
322323
- column: campaign_id
323324
dataType: INT
325+
isNullable: true
324326
target:
325327
id: campaign_id
326328
type: attribute
@@ -331,6 +333,7 @@ interactions:
331333
sources:
332334
- column: customer_id
333335
dataType: INT
336+
isNullable: true
334337
target:
335338
id: customer_id
336339
type: attribute
@@ -341,6 +344,7 @@ interactions:
341344
sources:
342345
- column: date
343346
dataType: DATE
347+
isNullable: true
344348
target:
345349
id: date
346350
type: date
@@ -351,6 +355,7 @@ interactions:
351355
sources:
352356
- column: product_id
353357
dataType: INT
358+
isNullable: true
354359
target:
355360
id: product_id
356361
type: attribute

packages/gooddata-sdk/tests/catalog/fixtures/data_sources/demo_scan_pdm_and_generate_logical_model_sql_datasets.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,6 @@ interactions:
496496
sources:
497497
- column: campaign_id
498498
dataType: INT
499-
isNullable: true
500499
target:
501500
id: campaigns.campaign_id
502501
type: attribute
@@ -670,7 +669,6 @@ interactions:
670669
sources:
671670
- column: campaign_id
672671
dataType: INT
673-
isNullable: true
674672
target:
675673
id: campaigns.campaign_id
676674
type: attribute
@@ -681,7 +679,6 @@ interactions:
681679
sources:
682680
- column: customer_id
683681
dataType: INT
684-
isNullable: true
685682
target:
686683
id: customers.customer_id
687684
type: attribute
@@ -692,7 +689,6 @@ interactions:
692689
sources:
693690
- column: date
694691
dataType: DATE
695-
isNullable: true
696692
target:
697693
id: date
698694
type: date
@@ -703,7 +699,6 @@ interactions:
703699
sources:
704700
- column: product_id
705701
dataType: INT
706-
isNullable: true
707702
target:
708703
id: products.product_id
709704
type: attribute

0 commit comments

Comments
 (0)