MCPcopy Create free account
hub / github.com/FlyingFeather/DEA-SQL / is_number

Function is_number

data_preprocess.py:6–12  ·  view source on GitHub ↗

Check if token is a SQL number literal.

(token)

Source from the content-addressed store, hash-verified

4
5
6def is_number(token):
7 """Check if token is a SQL number literal."""
8 try:
9 float(token)
10 return True
11 except ValueError:
12 return False
13
14
15def normalize_create_table(table_name, create_table_statement):

Calls

no outgoing calls

Tested by

no test coverage detected