We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CREATE TABLE IF NOT EXISTS test_struct ( event_t BIGINT, price STRUCT<p_int:int, p_float:float, p_char:varchar> ) DUPLICATE KEY(event_t) DISTRIBUTED BY HASH (event_t) BUCKETS 2 PROPERTIES( "light_schema_change" = "true" );
{ "event_t": 1732088517827, "price": { "p_int":1, "p_float":1.2, "p_char":"sa1" } }
struct type is needed in the table schema and data is imported from kafka though routine load.
support loading data of struct type by different importing ways
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Search before asking
Description
I load data which contains struct type to my table from Kafka by creating a routine load task. However, the field which has type struct is null.
I create my table as:
CREATE TABLE IF NOT EXISTS test_struct (
event_t BIGINT,
price STRUCT<p_int:int, p_float:float, p_char:varchar>
)
DUPLICATE KEY(event_t)
DISTRIBUTED BY HASH (event_t) BUCKETS 2
PROPERTIES(
"light_schema_change" = "true"
);
The message from kafka is:
{
"event_t": 1732088517827,
"price": {
"p_int":1, "p_float":1.2, "p_char":"sa1"
}
}
A routine load task is created to load this message to the table, however, the column of price is null.
Use case
struct type is needed in the table schema and data is imported from kafka though routine load.
Related issues
support loading data of struct type by different importing ways
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: