有xml:
<?xml version="1.0" encoding="UTF-8"?> <SINGLE_FORMAT> .... <STATUS IsActing="1" Code="22" GroupName="Active"> .... </SINGLE_FORMAT>
在spark中进行解析时,我使用以下结构:
Xpath_string(SINGLE_FORMAT/STATUS/@Code)
我收到以下错误: a pseudo attribute name is expected
a pseudo attribute name is expected
当我有选择地尝试在spark或hive中解析几行代码时,不会出现错误。