mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-27 02:10:38 +00:00
refactor: validate constraints eagerly (#3472)
* chore: validate constraints eagerly Signed-off-by: tison <wander4096@gmail.com> * use timestamp column Signed-off-by: tison <wander4096@gmail.com> * fixup Signed-off-by: tison <wander4096@gmail.com> * lint Signed-off-by: tison <wander4096@gmail.com> * compile Signed-off-by: tison <wander4096@gmail.com> --------- Signed-off-by: tison <wander4096@gmail.com>
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use std::assert_matches::assert_matches;
|
||||
use std::env;
|
||||
use std::sync::Arc;
|
||||
|
||||
@@ -639,7 +640,7 @@ async fn test_execute_external_create_without_ts(instance: Arc<dyn MockInstance>
|
||||
),
|
||||
)
|
||||
.await;
|
||||
assert!(matches!(result, Err(Error::TableOperation { .. })));
|
||||
assert_matches!(result, Err(Error::ParseSql { .. }));
|
||||
}
|
||||
|
||||
#[apply(both_instances_cases)]
|
||||
|
||||
Reference in New Issue
Block a user