Skip to main content
Solved

Database named "_cdf" in the training


Forum|alt.badge.img

While going through CDF fundamental course and working with the hands-on exercise, I came across the transformation SQL which uses _cdf database and I have seen 2 different tables (assets and timeseries) used in 2 different transformations. Can someone please help a bit more on this _cdf database? What is it’s content, what all tables it contains, how is it created, to which all datasets this DB will be related to etc.

Best answer by Ben Petree

Hey checkout this part of the documentation.

https://docs.cognite.com/cdf/integration/guides/transformation/write_sql_queries#read-from-other-cdf-resource-types

This shows all the different tables you have available in the _cdf database. If you do a select * you will find that every column corresponds to a property for that resource type. All data that has been transformed into CDF resource types (asset, timeseries, etc) is queryable this way. You will have the same access and permissions to this data as your user. If you don’t have access to assets in a dataset because you aren’t in that group, then you won’t have access to them through the query.

View original
Did this topic help you find an answer to your question?

2 replies

Forum|alt.badge.img+2
  • Practitioner
  • 17 replies
  • Answer
  • August 10, 2023

Hey checkout this part of the documentation.

https://docs.cognite.com/cdf/integration/guides/transformation/write_sql_queries#read-from-other-cdf-resource-types

This shows all the different tables you have available in the _cdf database. If you do a select * you will find that every column corresponds to a property for that resource type. All data that has been transformed into CDF resource types (asset, timeseries, etc) is queryable this way. You will have the same access and permissions to this data as your user. If you don’t have access to assets in a dataset because you aren’t in that group, then you won’t have access to them through the query.


  • Seasoned Practitioner
  • 223 replies
  • August 16, 2023

Hi @vsanwaria, did the above help you?


Reply


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings