@@ -77,6 +77,10 @@ public Builder(String tableName) {
7777
7878 /**
7979 * Add tag schema.
80+ * <p>
81+ * It is strongly recommended to use snake case naming convention and avoid
82+ * using camel case. This is because GreptimeDB treats column names as
83+ * case-insensitive, which can cause confusion when querying with camel case.
8084 *
8185 * @param name the name of this tag
8286 * @param dataType the data type of this tag
@@ -88,6 +92,10 @@ public Builder addTag(String name, DataType dataType) {
8892
8993 /**
9094 * Add timestamp schema.
95+ * <p>
96+ * It is strongly recommended to use snake case naming convention and avoid
97+ * using camel case. This is because GreptimeDB treats column names as
98+ * case-insensitive, which can cause confusion when querying with camel case.
9199 *
92100 * @param name the name of this timestamp
93101 * @param dataType the data type of this timestamp
@@ -101,6 +109,10 @@ public Builder addTimestamp(String name, DataType dataType) {
101109
102110 /**
103111 * Add field schema.
112+ * <p>
113+ * It is strongly recommended to use snake case naming convention and avoid
114+ * using camel case. This is because GreptimeDB treats column names as
115+ * case-insensitive, which can cause confusion when querying with camel case.
104116 *
105117 * @param name the name of this field
106118 * @param dataType the data type of this field
@@ -112,6 +124,10 @@ public Builder addField(String name, DataType dataType) {
112124
113125 /**
114126 * Add column schema.
127+ * <p>
128+ * It is strongly recommended to use snake case naming convention and avoid
129+ * using camel case. This is because GreptimeDB treats column names as
130+ * case-insensitive, which can cause confusion when querying with camel case.
115131 *
116132 * @param name the name of this column
117133 * @param semanticType the semantic type of this column (`Tag`, `Field` or `Timestamp`)
@@ -124,6 +140,10 @@ public Builder addColumn(String name, SemanticType semanticType, DataType dataTy
124140
125141 /**
126142 * Add column schema.
143+ * <p>
144+ * It is strongly recommended to use snake case naming convention and avoid
145+ * using camel case. This is because GreptimeDB treats column names as
146+ * case-insensitive, which can cause confusion when querying with camel case.
127147 *
128148 * @param name the name of this column
129149 * @param semanticType the semantic type of this column (`Tag`, `Field` or `Timestamp`)
@@ -144,7 +164,7 @@ public Builder addColumn(String name, //
144164 "Invalid timestamp data type: %s, only support `DataType.TimestampXXX`" , dataType );
145165 }
146166
147- // trim leading and trailing spaces
167+ // Trim leading and trailing spaces
148168 name = name .trim ();
149169
150170 this .columnNames .add (name );
0 commit comments