当我将csv文件中的数据加载到hive表中时,除字符串头之外的所有int头均显示为空。
我有pokemon.csv文件,其列标题如下
but after setup while using npm start, its broken and showing error
ERROR in ./src/styles.scss (./node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!./node_modules/postcss-loader/src??embedded!./node_modules/sass-loader/lib/loader.js??ref--14-3!./src/styles.scss)
Module build failed (from ./node_modules/sass-loader/lib/loader.js):
Error: Cannot find module 'node-sass'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.sassLoader (/Users/yogesh/Desktop/NG/rox/node_modules/sass-loader/lib/loader.js:46:72)
我已按如下所示创建了表格
# Name Type 1 Type 2 Total HP Attack Defense Sp. Atk Sp. Def Speed
1 Bulbasaur Grass Poison 318 45 49 49 65 65 45
2 Ivysaur Grass Poison 405 60 62 63 80 80 60
3 Venusaur Grass Poison 525 80 82 83 100 100 80
我得到如下结果
CREATE TABLE pokemon (
Number Int,
Name String,
Type1 String,
Type2 String,
Total Int,
HP Int,
Attack Int,
Defense Int,
Sp_Atk Int,
Sp_Def Int,
Speed Int
)
row format delimited
fields terminated BY ','
lines terminated BY '\n'
tblproperties("skip.header.line.count"="1");
不确定我为什么只为INT列获取NULL标头。请任何人帮忙吗?