我有一个包含 500,000 多条json记录的 S3 存储桶,例如。
{
"userId": "00000000001",
"profile": {
"created": 1539469486,
"userId": "00000000001",
"primaryApplicant": {
"totalSavings": 65000,
"incomes": [
{ "amount": 5000, "incomeType": "SALARY", "frequency": "FORTNIGHTLY" },
{ "amount": 2000, "incomeType": "OTHER", "frequency": "MONTHLY" }
]
}
}
}
Run Code Online (Sandbox Code Playgroud)
我在 Athena 中创建了一个新表
CREATE EXTERNAL TABLE profiles (
userId string,
profile struct<
created:int,
userId:string,
primaryApplicant:struct<
totalSavings:int,
incomes:array<struct<amount:int,incomeType:string,frequency:string>>,
>
>
)
ROW FORMAT SERDE 'org.openx.data.jsonserde.JsonSerDe'
WITH SERDEPROPERTIES ( 'ignore.malformed.json' = 'true')
LOCATION 's3://profile-data'
Run Code Online (Sandbox Code Playgroud)
我对例如感兴趣incomeTypes。"SALARY"、"PENSIONS" …
第1期
我试图在悬停时更改嵌入式svg的笔触颜色。这是从Illustrator导出并经过Peter Collingridge的SVG优化器的路径。我阅读的有关内联SVG样式的文章非常简单,但这些技术不适用于我的SVG。
我在标签上放置了一个悬停伪类,似乎无法针对中风。
<svg class="highlight" width="86" height="68" viewBox="0 0 85.7 68.5">
<polygon points="11 60.7 74.7 60.7 42.8 4.4 " style="fill:none;stroke-width:3;stroke:#491EC4"/>
</svg>
Run Code Online (Sandbox Code Playgroud)
我将背景颜色设置为粉红色,以检查悬停是否正常工作。
.highlight:hover {
background-color: pink;
stroke: red;
}
Run Code Online (Sandbox Code Playgroud)
它在jsfiddle上。
正如Codrops文章中所建议的,我还尝试将多边形包装在带有ID的use标签中,以更改CSS中的笔触,并使用stroke:inherit添加svg选择器。而且,jQuery的悬停方法没有运气。
我在做什么错,为什么这三种技术不起作用?
第2期
Sublime Text 2无法识别笔触属性。当我在CSS和HTML中键入时,它会变成白色。这是否意味着无效?我查看了CSS3插件的README文件,以了解它所添加的内容,并且没有“ stroke”属性。我应该在Beta中使用Sublime Text 3吗?
所有这些东西