test: Add nonexistent column not equal; this currently fails

pull/24376/head
Carol (Nichols || Goulding) 2022-06-03 12:51:12 -04:00
parent 5af0cc6acf
commit 7daf680e76
No known key found for this signature in database
GPG Key ID: E907EE5A736F87D4
1 changed files with 11 additions and 0 deletions

View File

@ -95,6 +95,17 @@ async fn list_tag_columns_predicate() {
run_tag_keys_test_case(TwoMeasurementsManyNulls {}, predicate, expected_tag_keys).await;
}
#[tokio::test]
async fn list_tag_columns_predicate_negative_nonexistent_column() {
let predicate = PredicateBuilder::default()
.add_expr(col("state").eq(lit("MA"))) // state=MA
.add_expr(col("host").not_eq(lit("server01"))) // nonexistent column with !=; always true
.build();
let predicate = InfluxRpcPredicate::new(None, predicate);
let expected_tag_keys = vec!["city", "county", "state"];
run_tag_keys_test_case(TwoMeasurementsManyNulls {}, predicate, expected_tag_keys).await;
}
#[tokio::test]
async fn list_tag_columns_measurement_pred() {
// Select only the following line using a _measurement predicate