Open lukaseder opened 3 years ago
I am trying to understand the following warning and have come across this issue. Does this have anything to do with it?
Ambiguous type name : The database object public.regexp_matches generates a class de.mrclrchtr.holz.generated.persistence.entities.tables.RegexpMatchesTable (class org.jooq.meta.postgres.PostgresTableValuedFunction) which conflicts with the previously generated class de.mrclrchtr.holz.generated.persistence.entities.tables.RegexpMatchesTable (class org.jooq.meta.postgres.PostgresTableValuedFunction). Use a custom generator strategy to disambiguate the types. More information here:
- https://www.jooq.org/doc/latest/manual/code-generation/codegen-generatorstrategy/
- https://www.jooq.org/doc/latest/manual/code-generation/codegen-matcherstrategy/
Ambiguous type name : The database object public.regexp_split_to_table generates a class de.mrclrchtr.holz.generated.persistence.entities.tables.RegexpSplitToTableTable (class org.jooq.meta.postgres.PostgresTableValuedFunction) which conflicts with the previously generated class de.mrclrchtr.holz.generated.persistence.entities.tables.RegexpSplitToTableTable (class org.jooq.meta.postgres.PostgresTableValuedFunction). Use a custom generator strategy to disambiguate the types. More information here:
- https://www.jooq.org/doc/latest/manual/code-generation/codegen-generatorstrategy/
- https://www.jooq.org/doc/latest/manual/code-generation/codegen-matcherstrategy/
Does this have anything to do with it?
No. Can you please create a new support request with more complete information?
BigQuery supports
SPLIT()
, which splits a string to an array: https://cloud.google.com/bigquery/docs/reference/standard-sql/string_functions#splitPostgreSQL has a similar function called
regexp_split_to_array
. We could support a table valued function that splits a string into an array or table. The table version can probably be emulated in other dialects using recursive SQL.Emulations:
SPLIT()
: https://cloud.google.com/bigquery/docs/reference/standard-sql/string_functions#splitREGEXP_SPLIT_TO_TABLE
: https://www.postgresql.org/docs/current/functions-matching.htmlSTRING_SPLIT
: https://learn.microsoft.com/en-us/sql/t-sql/functions/string-split-transact-sql?view=sql-server-ver16