示例#1
0
        /// <inheritdoc/>
        public void Visit(ExistsClause existsClause)
        {
            Ensure.IsNotNull(existsClause, nameof(existsClause));
            EnsureClause.StringIsNotNullOrEmpty(existsClause.FieldName, nameof(existsClause.FieldName));

            existsClause.KustoQL = $"{KustoQLOperators.IsNotNull}({existsClause.FieldName})";
        }
示例#2
0
        public string ExistsVisit_WithValidInput_ReturnsIsNotNullResponse()
        {
            var existsClause = new ExistsClause
            {
                FieldName = "MyField",
            };

            var visitor = new ElasticSearchDSLVisitor(SchemaRetrieverMock.CreateMockSchemaRetriever());

            visitor.Visit(existsClause);
            return(existsClause.KustoQL);
        }