Merging upstream version 10.0.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
528822bfd4
commit
b7d21c45b7
98 changed files with 4080 additions and 1666 deletions
|
@ -1,3 +1,6 @@
|
|||
from __future__ import annotations
|
||||
|
||||
import typing as t
|
||||
from enum import auto
|
||||
|
||||
from sqlglot.helper import AutoName
|
||||
|
@ -30,7 +33,11 @@ class OptimizeError(SqlglotError):
|
|||
pass
|
||||
|
||||
|
||||
def concat_errors(errors, maximum):
|
||||
class SchemaError(SqlglotError):
|
||||
pass
|
||||
|
||||
|
||||
def concat_errors(errors: t.Sequence[t.Any], maximum: int) -> str:
|
||||
msg = [str(e) for e in errors[:maximum]]
|
||||
remaining = len(errors) - maximum
|
||||
if remaining > 0:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue