Comments (10)
@gobiviswanath thanks for reporting this.
-
It looks like the DDL you provided is not the table that's causing the issue. Please go into
logs/metastore/{db_name}/table_name
and provide the DDL for the table that's throwing the error. -
For the second issue in question, please review the exported metastore entries and we can look into the fix if needed. Have you tried the
--metastore-unicode
option for the metastore export to ensure that control characters are captured? I'll need to know the export command used here.
from db-migration.
It looks like a bug w/ Azure using Delta CTAS statements when we export the DDL. I couldn't reproduce this on AWS. Could you open an eng ticket internally and have them take a look?
from db-migration.
Well, this does not look like a bug with DDL export itself, if we are creating a delta table without specifying location and allow table inherit location from database path.
will miss the location. This seem like expected behaviour.
When we use this
CREATE TABLE `test_delta_externalDB`.`customers_adlspath` ( `c_custkey` BIGINT, `c_name` STRING, `c_address` STRING, `c_nationkey` BIGINT, `c_phone` STRING, `c_acctbal` DECIMAL(12,2), `c_comment` STRING, `c_mktsegment` STRING) USING DELTA
to create table at destination destination, it fails. This is mainly because
a) databases migrated failed to inherit path / location from source workspace issue#56
b) We do not update the path/ dp path checks in create statements we generate by describing the table at source. The delta tables explicitly require location for shallow creation of tables.
from db-migration.
Closing this as it's related to #56 . Please re-open a new issue if you run into issues with the latest changes.
from db-migration.
Still an issue with delta tables have contributed a fix: attached the file here could you please review and commit the fix?
from db-migration.
The fix includes describing the table location and appending to the trailing path of ddl commands that is missing location for delta tables. I specifically add a check for delta because other tables need testing.
from db-migration.
It looks like I do not have access to push
so attached here.
from db-migration.
It's unclear why we need your patch since the #56 was not address because there's an issue with Azure serializing the function. This fix doesn't address the issue.
from db-migration.
I'd also recommend you look at forking a GitHub repo and how to submit pull requests.
from db-migration.
The fix is needed because delta import at destination fails after export:
Get: https://adb-4425252124055355.15.azuredatabricks.net/api/1.2/commands/status
ERROR:
org.apache.spark.sql.AnalysisException: Cannot create table ('deltadb3
.orders_dbfspath
'). The associated location ('abfss://[email protected]/deltaDB3/orders_dbfspath') is not empty.;
{'resultType': 'error', 'summary': 'org.apache.spark.sql.AnalysisException: Cannot create table ('deltadb3
.orders_dbfspath
'). The associated location ('abfss://[email protected]/deltaDB3/orders_dbfspath') is not empty.;', 'cause': '---------------------------------------------------------------------------\nPy4JJavaError Traceback (most recent call last)\n/databricks/spark/python/pyspark/sql/utils.py in deco(*a, **kw)\n 62 try:\n---> 63 return f(*a, **kw)\n 64 except py4j.protocol.Py4JJavaError as e:\n\n/databricks/spark/python/lib/py4j-0.10.7-src.zip/py4j/protocol.py in get_return_value(answer, gateway_client, target_id, name)\n 327 "An error occurred while calling {0}{1}{2}.\n".\n--> 328 format(target_id, ".", name), value)\n 329 else:\n\nPy4JJavaError: An error occurred while calling o211.sql.\n: org.apache.spark.sql.AnalysisException: Cannot create table ('deltadb3
.orders_dbfspath
'). The associated location ('abfss://[email protected]/deltaDB3/orders_dbfspath') is not empty
from db-migration.
Related Issues (20)
- DDL extraction issue with control characters HOT 2
- Add support for different file types for notebooks
- Fix ACLs for User Migrations with Case Sensitivity Changes
- --reset-exports arg defaults to true HOT 1
- add support for managed table data migration options. HOT 1
- add documentation on data migration options HOT 1
- Import users without notifications? HOT 2
- Add Secrets Export
- Add Secrets Import
- user import in azure fails with key error. HOT 4
- databases migrated failed to inherit path / location from source workspace HOT 2
- Add support for custom database locations for single database exports
- Apply Table Views After Raw Tables During Metastore Import
- Import Users into the specific groups already available from the export user-group lists HOT 2
- Add Export analysis for metastore partitioned tables
- Duplication of databricks jobs HOT 7
- Deleted Clusters requiring cluster id to exist before being imported again HOT 3
- CSV Custom Delimiters Error
- Tables are blank/empty after migration HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from db-migration.