这是融合平台5.3上的交易流
Name : TRANSACTIONSREKEYED
Type : STREAM
Key field : SENDER
Key format : STRING
Timestamp field : Not set - using <ROWTIME>
Value format : JSON
Kafka topic : TRANSACTIONSREKEYED (partitions: 1,
replication: 1)
Field | Type
----------------------------------------------
ROWTIME | BIGINT (system)
ROWKEY | VARCHAR(STRING) (system)
SENDER | VARCHAR(STRING)
RECEIVER | VARCHAR(STRING)
RECEIVERWALLETID | VARCHAR(STRING)
STATUS | VARCHAR(STRING)
TYPE | VARCHAR(STRING)
AMOUNT | DOUBLE
TOTALFEE | DOUBLE
CREATEDAT | VARCHAR(STRING)
UPDATEDAT | VARCHAR(STRING)
ID | VARCHAR(STRING)
ORDERID | VARCHAR(STRING)
__V | VARCHAR(STRING)
TXID | VARCHAR(STRING)
SENDERWALLETID | VARCHAR(STRING)
----------------------------------------------
Queries that write into this STREAM
-----------------------------------
CSAS_TRANSACTIONSREKEYED_9 : CREATE STREAM TRANSACTIONSREKEYED WITH
(REPLICAS = 1, PARTITIONS = 1, KAFKA_TOPIC = 'TRANSACTIONSREKEYED') AS
SELECT *
FROM TRANSACTIONSRAWW TRANSACTIONSRAWW
PARTITION BY SENDER;
这是用户表
Name : USERSNOW
Type : TABLE
Key field : ID
Key format : STRING
Timestamp field : Not set - using <ROWTIME>
Value format : JSON
Kafka topic : USERSPROFILEREKEYED (partitions: 1, replication:
1)
Field | Type
---------------------------------------------
ROWTIME | BIGINT (system)
ROWKEY | VARCHAR(STRING) (system)
ID | VARCHAR(STRING)
FIRSTNAME | VARCHAR(STRING)
LASTNAME | VARCHAR(STRING)
ROLE | VARCHAR(STRING)
STATUS | VARCHAR(STRING)
ISPHONEVERIFIED | VARCHAR(STRING)
EMAIL | VARCHAR(STRING)
PHONENUMBER | VARCHAR(STRING)
PASSWORD | VARCHAR(STRING)
PUSHTOKEN | VARCHAR(STRING)
CREATED_AT | VARCHAR(STRING)
UPDATED_AT | VARCHAR(STRING)
---------------------------------------------
现在一切正常,但是在我像这样运行简单的联接之后
select t.CREATEDAT, t.TXID,t.id,up.id,up.firstname,up.lastname,
up.phonenumber,up.email, t.sender,t.receiver, t.SENDERWALLETID,
t.RECEIVERWALLETID,t.status,t.type,t.amount,t.totalfee from
transactionsrekeyed t left outer join usersnow up on up.id=t.sender;
up.id,名字,姓氏和电子邮件都设置为null
ps:我在融合平台5.2.2上做了同样的事情,并且它处理相同的数据,相同的查询。