1
resposta

[Reclamação] Não está criando a tabela

A questão do dbfs tá ativa lá nas configurações. Esse curso está muito desatualizado.... Eu fiz o MESMO código do vídeo.

%sql
USE teste

%sql
CREATE TABLE usuarios(
  idade int,
  estado string,
  salario float
)
  ROW FORMAT DELIMITED 
    FIELDS TERMINATED BY ','
    LINES TERMINATED BY '\n'
  STORED AS textfile
  LOCATION 'dbfs:/FileStore/tables/aula-databricks/usuarios/'

[UC_FILE_SCHEME_FOR_TABLE_CREATION_NOT_SUPPORTED] Creating table in Unity Catalog with file scheme dbfs is not supported.
Instead, please create a federated data source connection using the CREATE CONNECTION command for the same table provider, then create a catalog based on the connection with a CREATE FOREIGN CATALOG command to reference the tables therein. SQLSTATE: 0AKUC

Já fiz sem o dbfs:/ na frente também e também deu erro. Lembrando que eu criei teste de database e visualizei ela lá com o show databases.

1 resposta

Estranho em