Skip to content
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

Add materialized views support in Kusto Service Layer #2028

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ludwhe
Copy link

@ludwhe ludwhe commented Apr 21, 2023

Implements support for materialized views in Kusto Service Layer.
@ludwhe
Copy link
Author

ludwhe commented Apr 21, 2023

@microsoft-github-policy-service agree

@github-actions
Copy link

As part of updating the dependencies in Packages.props we require that any PRs opened also verify that
they've done the following checks.

Please respond to this comment verifying that you've done the appropriate validation (or explain why it's not necessary) before merging in the PR

  • Built and tested the change locally to validate that the update doesn't cause any regressions and fixes the issues intended
  • Tested changes on all major platforms
    • Windows
    • Linux
    • Mac
  • Check the source repo for any open issues with the release being updated to (if available)

@ludwhe ludwhe marked this pull request as ready for review June 16, 2023 07:53
@ludwhe
Copy link
Author

ludwhe commented Jun 16, 2023

Reverted package updates as they caused multiple unforeseen issues. The only tradeoff I can see is that materialized view symbols are shown as "Table" in autocomplete widgets. Package update comments are therefore no longer applicable.

SetTableMetadata(databaseMetadata, tableInfos, rootTableFolderKey.ToString());
}

private IEnumerable<TableInfo> GetMaterializedViewsInfos(string databaseName)
{
CancellationTokenSource source = new CancellationTokenSource();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In other variables you start with var, couldn't these two be started with var too?

var source = new CancellationTokenSource();
var token = source.Token;

{
ValidationUtils.IsNotNullOrWhitespace(databaseName, nameof(databaseName));

CancellationTokenSource source = new CancellationTokenSource();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In other variables you start with var, couldn't these two be started with var too?

var source = new CancellationTokenSource();
var token = source.Token;

@@ -193,7 +195,7 @@ private void GenerateNodePath()
return false;
}
// Otherwise add this value to the beginning of the path and keep iterating up
path = string.Format(CultureInfo.InvariantCulture,
path = string.Format(CultureInfo.InvariantCulture,
"{0}{1}{2}", node.NodePathName, string.IsNullOrEmpty(path) ? "" : PathPartSeperator.ToString(), path);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change "" to string.Empty

@ludwhe
Copy link
Author

ludwhe commented Dec 8, 2023

Hello, any feedback on how to merge this will be appreciated 😄 This is a feature I have been highly anticipating to use in my daily usage of ADS!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants