Comments (2)
Figured I'd share the other thing I ran into and workaround -- preprocessing input DDL from Oracle as follows. Replacing with (38,0)
makes (*,0)
correctly convert to an INT64
.
# remove (*,0) from NUMBER defs that are integers anyway (38 is the max in variable data type, gets replaced anyway)
massaged_ddl = re.sub(r'NUMBER\(\*,0\)', r'NUMBER(38,0)', oraddl)
# chokes on this, tries to process like a column
massaged_ddl = re.sub(r'SUPPLEMENTAL LOG DATA \(.*\) COLUMNS.*\n', '', massaged_ddl)
from ddlparse.
@tb0n3zz
Thank you for using, and a issue report.
I fixed issue to v1.4.0 .
from ddlparse.
Related Issues (20)
- Add supports to BigQuery `NUMERIC` data type
- Not able to parse Default value and Foreign Key constraint
- Error while parsing HOT 2
- Add Support for RedShift column_attributes HOT 1
- Support for Column names with space HOT 1
- Unable to parse MySQL foreign key constraints (ON DELETE, CASCADE) HOT 1
- Unable to parse MySQL character sets HOT 2
- Support for Sort Key
- Unknown data type VARBINARY HOT 1
- MySQL CREATE TABLE parsing fails. some columns are missing. HOT 1
- Add support for Cloud Spanner DDLs HOT 1
- Migrate CI/CD from Travis CI to GitHub Actions
- Unable to convert DDL for Oracle table with LONG datatype
- The parser stops when it encounters a NULL column definition HOT 1
- Parse table-level COMMENT from CREATE TABLE?
- Don't fail on dot within schema
- column with timestamp not null default current_timestamp on update current_timestamp parse 3 columns
- Parsing stops without error on default varying varchar
- TIME WITHOUT TIME ZONE not supported
- Redshift [ IDENTITY ( seed, step ) ] statement support
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 ddlparse.