Hi I'm getting an error when setting "env" on reci...
# ingestion
h
Hi I'm getting an error when setting "env" on recipe to any other thing that is not "PROD", like "TESTE" (portuguese for test), any tips of what I'm doing wrong? I feel that maybe I'm missing something. The error is a long java stacktrace that ends in:
Copy code
. 86 more\nCaused by: java.net.URISyntaxException: Invalid URN Parameter: 'No enum constant com.linkedin.common.FabricType.TESTE: urn:li:dataset:(urn:li:dataPlatform:mssql,db_XXX.dbo.tb_ZZZZ,TESTE)
Using Pipeline.create() as:
Copy code
pipeline = Pipeline.create(
        # This configuration is analogous to a recipe configuration.
        {
            "source": {
                "type": "mssql",
                "config": {
                    "username": conn_odbc.login,
                    "password": conn_odbc.password,
                    "database": database,
                    "host_port": conn_odbc.host,
                    "use_odbc": "True",
                    "env": "TESTE"} 
} 
}
⬆️ 1
Is it a fixed list of envs, like "PROD", "DEV" ?
Searching on issues found this:
Copy code
/**
 * Fabric group type
 */
enum FabricType {

  /**
   * Designates development fabrics
   */
  DEV

  /**
   * Designates early-integration (staging) fabrics
   */
  EI

  /**
   * Designates production fabrics
   */
  PROD

  /**
   * Designates corporation fabrics
   */
  CORP
}
So it's an enum list, is it possible to add this on documentation?
m
@high-house-54354: thanks for asking about this and getting to the root of the issue. We'll add to our docs! /cc @witty-state-99511
h
Thanks @mammoth-bear-12532
w
Thanks Dewes!
b
@mammoth-bear-12532 Another reason to move away from this enum 😛
e
@mammoth-bear-12532 Hi ~ I also encountered the same problem and I want to know whether this problem will be solved in the future?
b
It will be solved, it’s just a question of when. Maybe we can create a ticket so we can all track it?
m
@big-carpet-38439 already exists: https://github.com/linkedin/datahub/issues/3001
👀 1
b
Amazing!