-
Notifications
You must be signed in to change notification settings - Fork 465
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
catalog: Move builtin types to correct schema (#23842)
Previously, we were accidentally putting all types in the pg_catalog schema. This commit moves the unsigned types and mz_timestamp to the mz_catalog schema and the acl_item type to the mz_internal schema. Fixes #23833
- Loading branch information
Showing
12 changed files
with
183 additions
and
56 deletions.
There are no files selected for viewing
52 changes: 52 additions & 0 deletions
52
misc/python/materialize/checks/all_checks/materialize_type.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Copyright Materialize, Inc. and contributors. All rights reserved. | ||
# | ||
# Use of this software is governed by the Business Source License | ||
# included in the LICENSE file at the root of this repository. | ||
# | ||
# As of the Change Date specified in that file, in accordance with | ||
# the Business Source License, use of this software will be governed | ||
# by the Apache License, Version 2.0. | ||
from textwrap import dedent | ||
|
||
from materialize.checks.actions import Testdrive | ||
from materialize.checks.checks import Check | ||
|
||
|
||
class MaterializeType(Check): | ||
def initialize(self) -> Testdrive: | ||
return Testdrive( | ||
dedent( | ||
""" | ||
> CREATE view v1 (a) AS SELECT 1::mz_timestamp; | ||
""" | ||
) | ||
) | ||
|
||
def manipulate(self) -> list[Testdrive]: | ||
return [ | ||
Testdrive(dedent(s)) | ||
for s in [ | ||
""" | ||
> CREATE VIEW v2 (a) AS SELECT 1::uint4; | ||
""", | ||
""" | ||
> CREATE VIEW v3 (a) AS SELECT 1::uint8; | ||
""", | ||
] | ||
] | ||
|
||
def validate(self) -> Testdrive: | ||
return Testdrive( | ||
dedent( | ||
""" | ||
> SELECT * FROM v1; | ||
1 | ||
> SELECT * FROM v2; | ||
1 | ||
> SELECT * FROM v3; | ||
1 | ||
""" | ||
) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.