Skip to content

[SUPPORT] Could you add Spark SQL Hint to be supported for hudi flexible query?  #9075

@zyclove

Description

@zyclove

Tips before filing an issue

Spark SQL Hint

/*+ hoodie_prop('${tableName}', map('${key1}', '${value1}', '${key2}', ''${value2}'')) */


select
  /*+
    hoodie_prop(
      'default.h1',
      map('hoodie.datasource.read.begin.instanttime', '20221127083503537', 'hoodie.datasource.read.end.instanttime', '20221127083506081')
    ),
    hoodie_prop(
      'default.h2',
      map('hoodie.datasource.read.begin.instanttime', '20221127083508715', 'hoodie.datasource.read.end.instanttime', '20221127083511803')
    )
  */
  id, name, price, ts
from (
  select id, name, price, ts
  from default.h1
  union all
  select id, name, price, ts
  from default.h2
)

select /*+ hoodie_prop('default.h1', map('as.of.instant', '20221127102741536')) */)


# query mor  ro 
select /*+ hoodie_prop('default.h1', map('hoodie.datasource.query.type', 'read_optimized')) */ 

# query mor  rt 
select /*+ hoodie_prop('default.h1', map('hoodie.datasource.query.type', 'snapshot')) */

ref: https://www.modb.pro/db/570222

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:sqlSQL interfacestype:featureNew features and enhancements

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions