Apache Atlas高级搜索语法示例

  1. from hive_table;hive_table

  1. from hive_table where name = 'xxx' or name = 'yyy'

  1. from hive_table where name = ["xxx", "yyy"]

  1. from hive_table where name LIKE '*_xxx'

  1. hive_db where name like "???dm?*"

  1. hive_column where table.name = "dim_zdm_shequ_pub"

  1. hive_column where columns.name="article_id"

  1. hive_column where Dimension.priority = "high"

  1. from hive_table where createTime < '2018-01-01' and createTime > '2017-01-01'

  1. from hdfs_path where isFile = true or name = "Invoice"

  1. hive_table has owner(owner是hive_table的一个属性

  1. from hive_table where hive_table has owner(owner是hive_table的一个属性)

  1. from hive_table select owner, name, qualifiedName

  1. from hive_table where name = 'ods_zdm_hive_dw_dqc_tmp_keyword_rule' select owner, name, qualifiedName(下图的properties都可以查)Apache Atlas高级搜索语法示例_第1张图片

  1. from hive_table select owner as Owner, name as Name, qualifiedName as FullName

  1. hive_table where name = 'ods_zdm_hive_dw_dqc_tmp_keyword_rule' select db.name

  1. from hive_column isa fact(这里是根据“类型”搜索,意思是:“类型”是“fact”的hive字段),也可以直接搜索“fact”Apache Atlas高级搜索语法示例_第2张图片

  1. from hive_table hasTerm "savingsAccount@Banking"(搜索打上了“Banking”这个术语表中“savingsAccount”这个术语标签的hive表)

  1. Table hasTerm "savingsAccount@Banking"

  1. Table hasTerm "savingsAccount"

  1. Table where Table hasTerm "savingsAccount@Banking"

  1. from Table hasTerm "savingsAccount@Banking" and name = "customer"

  1. from Table hasTerm "savingsAccount@Banking" or Table isA Dimension and (columns.name like "customer*")

  1. Column limit 5

  1. Column limit 5 offset 10

  1. from Column orderby name

  1. from Column orderby name asc/desc

  1. from Column hasTerm "savingsAccount@Banking" and name = "customer_id" orderby name asc

  1. Column select count()

  1. Column select count() as Cols

  1. Table where db.name = "Reporting" select count()

  1. Table hasTerm "savingsAccount@Banking" select count() as terms

  1. Table select max(createTime) / Table select min(createTime)

  1. Table groupby(owner)

  1. Table groupby(createTime) select owner, name, max(createTime)

  1. Table groupby(owner) select owner, count()

  1. Asset where __state = "DELETED"

你可能感兴趣的:(大数据,hive,hadoop,大数据)