我正在尝试使用对象键从主题创建表,但是他无法识别该变量。
对此有任何解决方案!!!
create table csvexporttable (HEADER STRUCT<BusinessDate varchar>,
body STRUCT<ActiveStore_SalesTransaction_170 STRUCT<ThirdPartyLoyaltyData STRUCT<TotalAdvantage STRUCT<AdvantageAmount int>,CustomerNo varchar>,TransactionDetail ARRAY <STRUCT<TransactionDetailGroup STRUCT<item STRUCT<ManualPrice int,PriceOverride int>>,DetailFlagVoid int>>,SuspendFlag int,Total Array<STRUCT<TotalAmount DOUBLE>>>>)
with (KAFKA_TOPIC='************',
VALUE_FORMAT='JSON',
KEY='HEADER->BusinessDate');