Skip to content

Adding Data Source Tables containing wildcards '*' breaks schema #447

@hennlo

Description

@hennlo

Operating System (Polypheny-DB)

Linux

Polypheny-DB Version

v.0.9.0

Affected Areas

DB, UI

Browser

No response

Client Operating System

SLES 15 SP4

Bug Description

When adding a new Data Source within Polypheny and the source tables are selected via wildcard * instead of specifying each table on its own.
The system goes ahead an creates a new entity in the public schema called *

Image Pasted at 2023-6-5 10-51

When now trying to view or select this table the schema view breaks and the system behaves very strangely.
Image Pasted at 2023-6-5 10-51

Reproduction Steps

  • Within Polypheny try adding a new data source adapter for example on PostgreSQL
  • in the source tables field simply type: *

This "successfully" creates an entity called * which cannot be used.

Expected Behavior

Related to: #449

* The asterix is actually a reserved keyword and shouldn't be allowed in the first place.
The original intention was to use *to select all tables within a schema that the user has access to.
Without tediously adding table by table.

Even if this is not supported creating an entity with * shouldn't be allowed.

Relevant Log Output

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions