Skip to content

Commit 18c6c53

Browse files
committed
Merge branch 'kevinliu/test' into kevinjqliu/fix-schema-comparison
2 parents 672efe2 + 10adb1c commit 18c6c53

File tree

6 files changed

+87
-358
lines changed

6 files changed

+87
-358
lines changed

mkdocs/docs/configuration.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -265,15 +265,6 @@ catalog:
265265
The In-Memory catalog uses in-memory data-structures to store information.
266266
This is useful for test, demo, and playground. Do not use in production as the data is not persisted.
267267

268-
While you can specify In-Memory catalog in the configuration file like this, it is not recommended since information is only persisted for the duration of the function call.
269-
270-
```yaml
271-
catalog:
272-
default:
273-
type: in_memory
274-
warehouse: /tmp/warehouse # default warehouse location
275-
```
276-
277268
# Concurrency
278269

279270
PyIceberg uses multiple threads to parallelize operations. The number of workers can be configured by supplying a `max-workers` entry in the configuration file, or by setting the `PYICEBERG_MAX_WORKERS` environment variable. The default value depends on the system hardware and Python version. See [the Python documentation](https://docs.python.org/3/library/concurrent.futures.html#threadpoolexecutor) for more details.

pyiceberg/catalog/__init__.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ class CatalogType(Enum):
9797
GLUE = "glue"
9898
DYNAMODB = "dynamodb"
9999
SQL = "sql"
100-
IN_MEMORY = "in_memory"
101100

102101

103102
def load_rest(name: str, conf: Properties) -> Catalog:
@@ -144,19 +143,12 @@ def load_sql(name: str, conf: Properties) -> Catalog:
144143
) from exc
145144

146145

147-
def load_in_memory(name: str, conf: Properties) -> Catalog:
148-
from pyiceberg.catalog.in_memory import InMemoryCatalog
149-
150-
return InMemoryCatalog(name, **conf)
151-
152-
153146
AVAILABLE_CATALOGS: dict[CatalogType, Callable[[str, Properties], Catalog]] = {
154147
CatalogType.REST: load_rest,
155148
CatalogType.HIVE: load_hive,
156149
CatalogType.GLUE: load_glue,
157150
CatalogType.DYNAMODB: load_dynamodb,
158151
CatalogType.SQL: load_sql,
159-
CatalogType.IN_MEMORY: load_in_memory,
160152
}
161153

162154

pyiceberg/catalog/in_memory.py

Lines changed: 0 additions & 246 deletions
This file was deleted.

pyiceberg/cli/output.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def describe_properties(self, properties: Properties) -> None:
157157
Console().print(output_table)
158158

159159
def text(self, response: str) -> None:
160-
Console().print(response)
160+
Console(soft_wrap=True).print(response)
161161

162162
def schema(self, schema: Schema) -> None:
163163
output_table = self._table

0 commit comments

Comments
 (0)