-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
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
Complex Types #4
Comments
Thanks for the guidance. |
Hi @HaroonSaid, Did you want to do something similar? await restApiClient.CreateTableAsync<ElasticSearchEvent>(metadata); Could you also provide the KSQL you used in the CLI mentioned above? see also supported data types in selects In selects try to use C# arrays instead of |
A KSQL fragment create fragment
|
I will try to prioritize this requirement, at the moment you can execute any arbitrary string statements from C# in the following manner: using Kafka.DotNet.ksqlDB.KSql.RestApi;
using Kafka.DotNet.ksqlDB.KSql.RestApi.Statements;
internal async Task ExecuteStatementAsync()
{
var ksqlDbUrl = @"http:\\localhost:8088";
var httpClientFactory = new HttpClientFactory(new Uri(ksqlDbUrl));
IKSqlDbRestApiClient restApiClient = new KSqlDbRestApiClient(httpClientFactory);
var statement = @"CREATE TYPE EventCategories AS STRUCT<id INTEGER, name VARCHAR, description VARCHAR>;";
KSqlDbStatement ksqlDbStatement = new(statement);
var httpResponseMessage = await restApiClient.ExecuteStatementAsync(ksqlDbStatement);
} |
hi @HaroonSaid,
var httpResponseMessage = await restApiClient.CreateTypeAsync<EventCategory>(); |
I released v1.6.0 |
Hi Tomas
Is there a way to create a table, using a model that has arrays, my Kafka topic looks like
The approach that I took, was to create a
CREATE TYPE
andCREATE TABLE
using the cli.However, it would be nice if I can do it thru the c# client
Thanks
The text was updated successfully, but these errors were encountered: