Deigo,

You can follow the default types model available in Atlas to know more
about defining ENUM and adding it as a constraint in other types..

https://github.com/apache/atlas/blob/master/addons/models/1000-Hadoop/1030-hive_model.json

Here *hive_principal_type* defined is as an ENUM and same is added as a
constraint in hive_db
<https://github.com/apache/atlas/blob/master/addons/models/1000-Hadoop/1030-hive_model.json#L451>
type for owner attribute.

Regards
Nixon


On Wed, Dec 12, 2018 at 5:47 PM Diego Monetti <[email protected]> wrote:

> Hi,
> I'm new to Atlas and probably I'm not able to navigate the documentation
> well enough.
> My first problem, of a long sequence, is that I would like to define an
> integer type that takes only one of possible values. I know I could do this
> by defining a specific enum type. But is there a more appropriate way to do
> this via, for example, a constraint?
>
> Diego
>

Reply via email to