我正在尝试保存此Avro模式。我收到消息,该架构无效。有人可以分享为什么它无效吗?
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<section id="home">
<span class="header2 etpadding">Welcome To</span><br>
<br><span class="header1 tpadding">WTS<br>SHOP</span><br>
<span class="header2 mtpadding">This is a test for checking background blur</span><br>
<a href="#product" class="button" data-scroll>Check out our Product catalogue</a><br>
</section>
<section id="product">
<span class="header3">This is a test</span><br>
<!-- Trigger/Open The Modal -->
<a href="#myModal1" class="modal-button">• Modal Button 1</a>
<p>Modal Window 2 to be launched through body of Modal 1</p>
<!-- Trigger/Open The Modal -->
<a href="#myModal3" class="modal-button buttonalign">• Modal button 3</a><br>
<!-- Trigger/Open The Modal -->
<a href="#myModal4" class="modal-button buttonalign">• Modal Button 4</a><br>
</section>
<section id="payment">
<span class="header3">Supported Payment Methods</span>
</section>
<section id="disclaimer">
<span class="header3">Disclaimer</span>
</section>
<section id="contact">
<span class="header3">Contact Us</span>
</section>
<!-- The Modals must be direct children of <body> -->
<!-- The Modal -->
<div id="myModal1" class="modal">
<!-- Modal content -->
<div class="modal-content">
<div class="modal-header">
<span class="close">×</span>
<div class="headertext">
Modal Window 1
</div>
</div>
<div class="modal-body">
<img class="pic" src="https://drive.google.com/thumbnail?id=108ZLeoIfNkKODfRbLuPWpmXRl0gH9qkD">
<div class="bodytext">
currently viewing modal no.1
<a href="#myModal2" class="modal-button">Click to open modal window no.2</a>
</div>
</div>
</div>
<div id="myModal2" class="modal">
<!-- Move inner modal inside as a direct child of the first modal -->
<div class="modal-content">
<div class="modal-header">
<span class="close">×</span>
<div class="headertext">
Modal Window 2
</div>
</div>
<div class="modal-body">
<img class="pic" src="https://drive.google.com/thumbnail?id=108ZLeoIfNkKODfRbLuPWpmXRl0gH9qkD">
<div class="bodytext">
You are currently viewing modal no.2
</div>
</div>
</div>
</div>
</div>
<!-- The Modal -->
<div id="myModal3" class="modal">
<!-- Modal content -->
<div class="modal-content">
<div class="modal-header">
<span class="close">×</span>
<div class="headertext">
Modal Window 3
</div>
</div>
<div class="modal-body">
<img class="pic" src="https://drive.google.com/thumbnail?id=108ZLeoIfNkKODfRbLuPWpmXRl0gH9qkD">
<div class="bodytext">
Currently viewing modal window 3
</div>
</div>
</div>
</div>
<!-- The Modal -->
<div id="myModal4" class="modal">
<!-- Modal content -->
<div class="modal-content">
<div class="modal-header">
<span class="close">×</span>
<div class="headertext">
Modal Window 4
</div>
</div>
<div class="modal-body">
<img class="pic" src="https://drive.google.com/thumbnail?id=108ZLeoIfNkKODfRbLuPWpmXRl0gH9qkD">
<div class="bodytext">
Currently viewing modal window 4
</div>
</div>
</div>
</div>
答案 0 :(得分:0)
我在这里参加聚会有点晚了,但我认为您的问题是双重的。
(1)尚未重新格式化列以使用Personalize想要查看的字段名称。互动的必填字段是USER_ID,ITEM_ID和TIMESTAMP。 (TIMESTAMP为Unix Epoch格式。)请参见参考文献here。
(2)交互的五个指定字段是USER_ID,ITEM_ID,TIMESTAMP,EVENT_TYPE和EVENT_VALUE。如果您确实包含更多字段,则它们将被视为元数据字段,并且您最多只能包含5个元数据字段。如果确实包含它们并且数据类型为“ String”,则必须将它们指定为“ categorical”。有关示例,请参见Personalize Developer's Guide的第35页。
希望这会有所帮助!