Skip to content

[Bug] - CB utility analyzedb does not work #1929

Description

@vsbace

Apache Cloudberry version

We are trying to test Apache Cloudberry 2.1.0 on Astra Linux 1.8.2 (Debian 12 based)

What happened

Hello,

CB utility analyzedb does not work
gpadmin@qc1:/data/cbdb/master-1/gpseg-1$ analyzedb -d dwh -p 10 20260826:18:17:57:163972 analyzedb:qc1:gpadmin-[INFO]:-Starting analyzedb with args: -d dwh -p 10 20260826:18:17:57:163972 analyzedb:qc1:gpadmin-[INFO]:-Getting and verifying input tables and materialized views... 20260826:18:17:58:163972 analyzedb:qc1:gpadmin-[INFO]:-Checking for tables with stale stats... 20260826:18:17:58:163972 analyzedb:qc1:gpadmin-[ERROR]:-'ascii' codec can't encode characters in position 13-19: ordinal not in range(128) Traceback (most recent call last): File "/usr/local/cloudberry-db/bin/analyzedb", line 377, in execute heap_partitions = get_heap_tables_set(self.conn, input_tables_set) # set((schema1,table1), ...]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/cloudberry-db/bin/analyzedb", line 1005, in get_heap_tables_set oid_str = get_oid_str(input_tables_set) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/cloudberry-db/bin/analyzedb", line 977, in get_oid_str return ','.join(map((lambda x: regclass_schema_tbl(x[0], x[1])), table_list)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/cloudberry-db/bin/analyzedb", line 977, in <lambda> return ','.join(map((lambda x: regclass_schema_tbl(x[0], x[1])), table_list)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/cloudberry-db/bin/analyzedb", line 985, in regclass_schema_tbl return "to_regclass('%s')" % (pg.escape_string(schema_tbl)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ UnicodeEncodeError: 'ascii' codec can't encode characters in position 13-19: ordinal not in range(128) 20260826:18:17:58:163972 analyzedb:kvd-dwh-qc1-c1:gpadmin-[CRITICAL]:-analyzedb failed. (Reason=''ascii' codec can't encode characters in position 13-19: ordinal not in range(128)') exiting...

What you think should happen instead

No response

How to reproduce

I am not sure about this problem.

Operating System

Astra Linux 1.8.2 (Debian 12 based)

Anything else

No response

Are you willing to submit PR?

  • Yes, I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions