2026年大数据分析师《SQL与Hive查询优化》历年真题及答案.docxVIP

  • 1
  • 0
  • 约1.02万字
  • 约 22页
  • 2026-05-24 发布于四川
  • 举报

2026年大数据分析师《SQL与Hive查询优化》历年真题及答案.docx

2026年大数据分析师《SQL与Hive查询优化》历年真题及答案

单选题(每题1分,共20分)

1.在Hive中,以下哪一项参数可以强制将MapJoin转换为普通Join以规避内存溢出风险?

A.hive.auto.convert.join=false

B.hive.mapjoin.smalltable.filesize=0

C.hive.ignore.mapjoin.hint=true

D.hive.exec.dynamic.partition=false

答案:A

2.某表按dt分区,含1000个分区,现需查询最近7天数据,以下写法执行效率最高的是:

A.select*fromtwheredt=date_sub(current_date,7)

B.select*fromtwheredtin(selectdate_sub(current_date,6)union…)

C.select*fromtwheredtbetween2026-06-19and2026-06-25

D.select*fromtwheresubstr(dt,1,10)=date_sub(current_date,7)

答案:C

3.在ORC文件中,StripeSize默认256MB,若将hive.exec.orc.default

文档评论(0)

1亿VIP精品文档

相关文档