Is recreate_schema supported in CslCommandGenerator.GenerateTableSetOrReplaceCommand(......) . I can see extend_schema is supported.[KustoClientFactory ]

Sumier Sumier Mustafa 21 Reputation points Microsoft Employee
2022-12-05T22:53:22.617+00:00

public static string GenerateTableSetOrReplaceCommand(string tableName, string innerQuery, bool isAsync, IEnumerable<string> tags = null, IEnumerable<string> ingestIfNotExistsValues = null, DateTime? creationTime = default, string folderName = null, string docString = null, bool enableIngestionTimePolicy = true, bool extendSchema = false, bool persistDetails = false, bool distributed = false)

extend_schema A Boolean value that, if specified, instructs the command to extend the schema of the table. Default is "false". This option applies only to .append, .set-or-append, and set-or-replace commands. The only permitted schema extensions have additional columns added to the table at the end

recreate_schema A Boolean value that. If specified, describes if the command may recreate the schema of the table. Default is "false". This option applies only to the set-or-replace command. This option takes precedence over the extend_schema property if both are set

https://video2.skills-academy.com/en-us/azure/data-explorer/kusto/api/netfx/about-kusto-data

Azure Data Explorer
Azure Data Explorer
An Azure data analytics service for real-time analysis on large volumes of data streaming from sources including applications, websites, and internet of things devices.
502 questions
{count} votes

Accepted answer
  1. KranthiPakala-MSFT 46,437 Reputation points Microsoft Employee
    2022-12-12T19:52:10.633+00:00

    Hello @Sumier Sumier Mustafa ,

    As per the discussion with product team, you can use this variant of the method:

    public static string GenerateTableSetOrReplaceCommand(string tableName, string innerQuery, bool isAsync, TableSetAppendReplaceParameters parameters)  
    

    Hope this info helps. Do let us know if you have further questions.

    Thanks

    ----------

    Please do consider clicking on "Accept Answer" and "Upvote" on the post that helps you, as it can be beneficial to other community members.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful