使用apache-drill从镶木地板文件中提取元数据

时间:2020-06-26 14:19:54

标签: sql nosql parquet apache-drill

我正在使用Apache-drill查询镶木地板文件(这是一个目录)。我想首先获取镶木地板的列,所以我发现的唯一方法是用钻查询单行并将列名称提取为

import { observer, MobXProviderContext, useObserver } from 'mobx-react';

function useStores() {
  return useContext(MobXProviderContext);
}

function useJob() {
  const { jobStore } = useStores();
  return useObserver(() => jobStore);
}



//USAGE

function ChildDocs(props) {
  const jobStore = useJob();
  const { validChildDocuments, setCurrentChildDoc, currentChildDoc, noneDocuments } = jobStore;
  
  //This won't update although the value in the store is null after re-mount. This shows the old value
  console.log('verificationDataStore=', currentChildDoc.verificationDataStore);

}
export default observer(ChildDocs);

但是,我想知道是否有一种更有效的方法来通过读取实木复合地板元数据来提取列名称。有人有建议吗?

0 个答案:

没有答案