Skip to content

Commit

Permalink
chore: update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
CookiePieWw committed Apr 22, 2024
1 parent 763428a commit b5652b3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests-fuzz/src/generator/create_expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ impl<R: Rng + 'static> Generator<CreateTableExpr, R> for CreateTableExprGenerato
}
}

/// Generates a physical table.
/// Generate a physical table with 2 columns: time index and value.
#[derive(Builder)]
#[builder(pattern = "owned")]
pub struct CreatePhysicalTableExprGenerator<R: Rng + 'static> {
Expand All @@ -219,7 +219,7 @@ impl<R: Rng + 'static> Generator<CreateTableExpr, R> for CreatePhysicalTableExpr

fn generate(&self, rng: &mut R) -> Result<CreateTableExpr> {
let if_not_exists = rng.gen_bool(0.5);
// Simply generates a physical table with two columns.

let create_physical_table_generator = CreateTableExprGeneratorBuilder::default()
.name_generator(Box::new(MappedGenerator::new(
WordGenerator,
Expand All @@ -236,7 +236,7 @@ impl<R: Rng + 'static> Generator<CreateTableExpr, R> for CreatePhysicalTableExpr
}
}

/// Generates a logical table based on an existing physical table.
/// Generate a logical table based on an existing physical table.
#[derive(Builder)]
#[builder(pattern = "owned")]
pub struct CreateLogicalTableExprGenerator<R: Rng + 'static> {
Expand All @@ -250,7 +250,7 @@ impl<R: Rng + 'static> Generator<CreateTableExpr, R> for CreateLogicalTableExprG
type Error = Error;

fn generate(&self, rng: &mut R) -> Result<CreateTableExpr> {
// Currently we mock the usage of GreptimeDB as Prometheu's backend, the physical table must have two columns.
// Currently we mock the usage of GreptimeDB as Prometheus' backend, the physical table must have two columns.
ensure!(
self.table_ctx.columns.len() == 2,
error::UnexpectedSnafu {
Expand Down

0 comments on commit b5652b3

Please sign in to comment.