Skip to main content
Solved

Generate physical table using logical model

  • August 30, 2024
  • 3 replies
  • 47 views

Hi All,

I am very new to Ataccama and still exploring everything by myself. I have updated logical model (added new entities), load operation and then configured transformations. Saved and generated the project. But I cannot see the new entities in Postgresql. I was under assumptions that after generating the logical model, tables will be created automatically in postgre but that didnโ€™t happen. Tried saving, generating, stopping and starting servers several time but no luck.

Is there any steps to follow?

Thanks

FS

Best answer by AKislyakov

MDM Server automatically adds new columns (and alters existing ones in some cases), but it leaves deleted columns intact.

Here is the parameter that controls database alteration level:

nme.vldb.alterTableLevel

addColumns,alterColumnsAlter

Defines what alter table commands will be executed if a table in database does not match the model. This is list of permitted values:

  • addColumns. Add missing columns.

  • alterColumnsAlter. Alter existing columns that can be altered by DB DDL command, only extending varchar size and on some databases altering to clob is supported, that is, it wonโ€™t change from small to large numbers (INTEGER โ†’ LONG). If database does not support alteration via DDL command, warning is written into log.

3 replies

Forum|alt.badge.img+2
  • Ataccamer
  • September 2, 2024

Hi @fshahinย 

Unless you're starting your mdm-server in Read-Only mode (nme.vldb.readonly=true), it should create missing tables upon startup. In the mdm-server startup logs, there should be messages like "Starting plan..." for transformations related to your new entities. If you see such messages and the server starts up successfully, then the tables should be in place. If you donโ€™t see them, then probably mdm-server doesnโ€™t see your changes / uses some other configuration.

ย 


  • Author
  • Universe Traveller
  • September 3, 2024

Thank You @AKislyakovย . Today all the new entities were showing up in postgres but found another issue. Due to model changes I had deleted few columns from existing entities but those are still showing up in postgres tables. Is there anyway to delete them?

ย 


Forum|alt.badge.img+2
  • Ataccamer
  • Answer
  • September 4, 2024

MDM Server automatically adds new columns (and alters existing ones in some cases), but it leaves deleted columns intact.

Here is the parameter that controls database alteration level:

nme.vldb.alterTableLevel

addColumns,alterColumnsAlter

Defines what alter table commands will be executed if a table in database does not match the model. This is list of permitted values:

  • addColumns. Add missing columns.

  • alterColumnsAlter. Alter existing columns that can be altered by DB DDL command, only extending varchar size and on some databases altering to clob is supported, that is, it wonโ€™t change from small to large numbers (INTEGER โ†’ LONG). If database does not support alteration via DDL command, warning is written into log.