如何根据表中的数据获取镶木地板文件名

问题描述 投票:1回答:1

我试图找出许多镶木地板文件中的哪一个是存储在表中的数据,用于特定的日期条件集。

例如:

select filenames from table where dateCol = '1-1-2010';

我记得在某个地方阅读这篇文章是可能的但却无法回忆起这样的事情;我也不能在其他地方找到它。有人有任何想法吗?

hadoop hive parquet
1个回答
1
投票

得到它了。

select distinct(INPUT__FILE__NAME) from table where conditions;
© www.soinside.com 2019 - 2024. All rights reserved.