microsoft / Kusto-Query-Language

Kusto Query Language is a simple and productive language for querying Big Data.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.alter table policy partitioning recognized as AlterTablePolicyUpdate

vplauzon opened this issue · comments

The follow script is parsed as CustomCommand with CommandKind=="AlterTablePolicyUpdate":

.alter table mydb.mytable policy partitioning ```
{
'PartitionKeys': [
{
'ColumnName': 'my_string_column',
'Kind': 'Hash',
'Properties': {
'Function': 'XxHash64',
'MaxPartitionCount': 128,
'PartitionAssignmentMode': 'Uniform'
}
}
]
}```

It's getting hung up on the qualified table name. It is specified incorrectly in the parser to only allow just the table name. Most commands that allow you to specify table names only expect tables from the current database. A few allow qualified names.

That is legal KQL, i.e. it is accepted by Kusto query API. Can we fix this?

It also used to be supported in the past version of Kusto.Language.

I've modified the definition for Kusto.Language to include the correct kind of table reference for this command.

Thank you! I assume the package will be updated with those changes in next publish?